[Git][NTPsec/ntpsec][master] Fix UnicodeError on Unicode names given to ntpdig
Gary E. Miller (@garyedmundsmiller)
gitlab at mg.gitlab.com
Sun Nov 2 00:45:57 UTC 2025
Gary E. Miller pushed to branch master at NTPsec / ntpsec
Commits:
df6cc52c by James Browning at 2025-11-01T17:20:37-07:00
Fix UnicodeError on Unicode names given to ntpdig
- - - - -
1 changed file:
- ntpclients/ntpdig.py
Changes:
=====================================
ntpclients/ntpdig.py
=====================================
@@ -90,6 +90,9 @@ def queryhost(server, concurrent, timeout=5, port=123, bindaddr=None):
except socket.gaierror as e:
log("lookup of %s failed, errno %d = %s" % (server, e.args[0], e.args[1]))
return []
+ except UnicodeError as e:
+ log("lookup of %s failed, %s" % (server, e.args[0]))
+ return []
if bindaddr:
try:
bindsock = socket.getaddrinfo(bindaddr,None,af,
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/df6cc52c66a1148dd7d48243d75ab968c950230d
--
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/-/commit/df6cc52c66a1148dd7d48243d75ab968c950230d
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20251102/66bef006/attachment.htm>
More information about the vc
mailing list