[Git][NTPsec/ntpsec][master] Address GitLab issue #137: Traceback: Empty keyid for :config
Eric S. Raymond
gitlab at mg.gitlab.com
Thu Nov 3 11:17:59 UTC 2016
Eric S. Raymond pushed to branch master at NTPsec / ntpsec
Commits:
1f7b0031 by Eric S. Raymond at 2016-11-03T07:16:52-04:00
Address GitLab issue #137: Traceback: Empty keyid for :config
- - - - -
1 changed file:
- pylib/packet.py
Changes:
=====================================
pylib/packet.py
=====================================
--- a/pylib/packet.py
+++ b/pylib/packet.py
@@ -422,7 +422,7 @@ class Mode6Session:
# FIXME: Magic number, yuck
if key_id == 0 or key_id > 65535:
raise Mode6Exception(SERR_BADKEY)
- except ValueError:
+ except (SyntaxError, ValueError):
raise Mode6Exception(SERR_BADKEY)
self.keyid = key_id
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/1f7b0031727e56a40c48404e2ce269b5bc1e1c67
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ntpsec.org/pipermail/vc/attachments/20161103/8a01aa93/attachment.html>
More information about the vc
mailing list