[Git][NTPsec/ntpsec][master] Address GitLab issue #380: ntpq should not terminate with a traceback

Eric S. Raymond gitlab at mg.gitlab.com
Wed Sep 6 16:47:43 UTC 2017


Eric S. Raymond pushed to branch master at NTPsec / ntpsec


Commits:
229eb707 by Eric S. Raymond at 2017-09-06T16:47:07+00:00
Address GitLab issue #380: ntpq should not terminate with a traceback

- - - - -


1 changed file:

- ntpclients/ntpq


Changes:

=====================================
ntpclients/ntpq
=====================================
--- a/ntpclients/ntpq
+++ b/ntpclients/ntpq
@@ -1730,7 +1730,7 @@ if __name__ == '__main__':
                         interpreter.onecmd(command)
                     session.close()
         raise SystemExit(0)
-    except KeyboardInterrupt:
+    except (KeyboardInterrupt, EOFError):
         if os.isatty(0):
             interpreter.say("\n")
     except ntp.packet.ControlException as e:



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/229eb707111a4e1db8c856d10a4d5f2c8e4c363e

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/229eb707111a4e1db8c856d10a4d5f2c8e4c363e
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/20170906/5e26751b/attachment.html>


More information about the vc mailing list