Don't show tracebacks on Control-C.

pull/5430/head
Michael DeHaan 11 years ago
parent 1119ecebee
commit 81bc44ccc2

@ -270,4 +270,7 @@ if __name__ == "__main__":
except errors.AnsibleError, e:
display("ERROR: %s" % e, color='red', stderr=True)
sys.exit(1)
except KeyboardInterrupt, ke:
display("ERROR: interrupted", color='red', stderr=True)
sys.exit(1)

Loading…
Cancel
Save