Skip to content
Snippets Groups Projects
Commit f7898f87 authored by Matt Selsky's avatar Matt Selsky
Browse files

Add import exception specifics to ntpdig, just like other apps.

parent 57e7f4fa
No related branches found
No related tags found
Loading
......@@ -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):
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment