[Git][NTPsec/ntpsec][master] Add import exception specifics to ntpdig, just like other apps.

Gary E. Miller gitlab at mg.gitlab.com
Thu Dec 29 01:07:43 UTC 2016


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
f7898f87 by Matt Selsky at 2016-12-28T19:26:28-05:00
Add import exception specifics to ntpdig, just like other apps.

- - - - -


1 changed file:

- ntpclients/ntpdig


Changes:

=====================================
ntpclients/ntpdig
=====================================
--- a/ntpclients/ntpdig
+++ b/ntpclients/ntpdig
@@ -44,8 +44,9 @@ try:
     import ntp.packet
     import ntp.util
     import ntp.magic
-except:
+except ImportError as e:
     sys.stderr.write("ntpdig: can't find Python NTP library -- check PYTHONPATH.\n")
+    sys.stderr.write("%s\n" % e)
     sys.exit(1)
 
 def queryhost(server, concurrent, timeout=5, port=123):



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/f7898f87c2ec7e769a04ba300c61f9e184ac22f4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20161229/76b90971/attachment.html>


More information about the vc mailing list