Merge pull request #7425 from ghjm/no_traceback_on_keyboardinterrupt

Don't traceback on KeyboardInterrupt

Reviewed-by: awxbot
             https://github.com/awxbot
This commit is contained in:
softwarefactory-project-zuul[bot] 2020-06-23 20:45:19 +00:00 committed by GitHub
commit f4514873cd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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 = (