diff options
author | Jenkins <jenkins@review.openstack.org> | 2014-09-13 02:29:36 +0000 |
---|---|---|
committer | Gerrit Code Review <review@openstack.org> | 2014-09-13 02:29:36 +0000 |
commit | 95841b563340c494d8ef746261213c22e19c94ac (patch) | |
tree | 9977b3516fe515341f181033ac3bc8b90192f72d /heatclient/shell.py | |
parent | 407a69995dbc13494c1183d46145ec07b1f4850c (diff) | |
parent | ec44d2a49e2bbc7e486bb1c3399376a61dee357e (diff) | |
download | python-heatclient-95841b563340c494d8ef746261213c22e19c94ac.tar.gz |
Merge "handles keyboard interrupt"
Diffstat (limited to 'heatclient/shell.py')
-rw-r--r-- | heatclient/shell.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/heatclient/shell.py b/heatclient/shell.py index 00073d4..264a824 100644 --- a/heatclient/shell.py +++ b/heatclient/shell.py @@ -630,6 +630,9 @@ def main(args=None): args = sys.argv[1:] HeatShell().main(args) + except KeyboardInterrupt: + print("... terminating heat client", file=sys.stderr) + sys.exit(130) except Exception as e: if '--debug' in args or '-d' in args: raise |