SeattleTestbed / attic

ARCHIVAL: Full mirror of SeattleTestbed's SVN in early 2014. We use GitHub since!
MIT License
0 stars 1 forks source link

Exception handling in time libraries masks relevant information #1350

Closed choksi81 closed 10 years ago

choksi81 commented 10 years ago

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".