Don't traceback on KeyboardInterrupt

This commit is contained in:
Graham Mainwaring
2020-06-23 16:14:02 -04:00
parent 69589821ce
commit 29da0abfc1

View File

@@ -23,6 +23,8 @@ def run(stdout=sys.stdout, stderr=sys.stderr, argv=[]):
cli.parse_args(argv or sys.argv)
cli.connect()
cli.parse_resource()
except KeyboardInterrupt:
sys.exit(1)
except ConnectionError as e:
cli.parser.print_help()
msg = (