Exceptions in the time libraries (time, ntp_time, tcp_time) are often not raised when due, and/or caught all-inclusive (except Exception) When exceptions are eventually raised, they often don't convey meaningful information.
For example, try to time_updatetime and supply a forbidden TCP port as localport. Rather than the ResourceForbiddenError one would expect, it raises an Exception (the most unspecific of all classes), "Unable to locate any servers running time_server.repy".
Exceptions in the time libraries (time, ntp_time, tcp_time) are often not raised when due, and/or caught all-inclusive (
except Exception
) When exceptions are eventually raised, they often don't convey meaningful information.For example, try to
time_updatetime
and supply a forbidden TCP port aslocalport
. Rather than the ResourceForbiddenError one would expect, it raises anException
(the most unspecific of all classes), "Unable to locate any servers running time_server.repy".