mirror of
https://github.com/ansible/awx.git
synced 2026-02-25 23:16:01 -03:30
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:
@@ -23,6 +23,8 @@ def run(stdout=sys.stdout, stderr=sys.stderr, argv=[]):
|
|||||||
cli.parse_args(argv or sys.argv)
|
cli.parse_args(argv or sys.argv)
|
||||||
cli.connect()
|
cli.connect()
|
||||||
cli.parse_resource()
|
cli.parse_resource()
|
||||||
|
except KeyboardInterrupt:
|
||||||
|
sys.exit(1)
|
||||||
except ConnectionError as e:
|
except ConnectionError as e:
|
||||||
cli.parser.print_help()
|
cli.parser.print_help()
|
||||||
msg = (
|
msg = (
|
||||||
|
|||||||
Reference in New Issue
Block a user