mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Don't show tracebacks on Control-C.
This commit is contained in:
parent
1119ecebee
commit
81bc44ccc2
1 changed files with 3 additions and 0 deletions
|
@ -270,4 +270,7 @@ if __name__ == "__main__":
|
||||||
except errors.AnsibleError, e:
|
except errors.AnsibleError, e:
|
||||||
display("ERROR: %s" % e, color='red', stderr=True)
|
display("ERROR: %s" % e, color='red', stderr=True)
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except KeyboardInterrupt, ke:
|
||||||
|
display("ERROR: interrupted", color='red', stderr=True)
|
||||||
|
sys.exit(1)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue