[Git][NTPsec/ntpsec][master] Address GitLab issue #190: ntp.packet.ControlException in ntpsweep
Eric S. Raymond
gitlab at mg.gitlab.com
Sat Dec 3 19:51:04 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
64073d5c by Eric S. Raymond at 2016-12-03T14:50:52-05:00
Address GitLab issue #190: ntp.packet.ControlException in ntpsweep
- - - - -
1 changed file:
- ntpsweep/ntpsweep
Changes:
=====================================
ntpsweep/ntpsweep
=====================================
--- a/ntpsweep/ntpsweep
+++ b/ntpsweep/ntpsweep
@@ -171,8 +171,11 @@ Host st offset(s) version system processor
known_host_peers = {}
trace = []
for host in hostlist:
- scan_host(host, 0)
-
+ try:
+ scan_host(host, 0)
+ except ntp.packet.ControlException as e:
+ sys.stderr.write(e.message + "\n")
+ sys.exit(1)
sys.exit(0)
# end
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/64073d5c8d09bd85dd4ea54678ff44061879d520
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161203/de4e7cb4/attachment.html>
More information about the vc
mailing list