Merge "handles keyboard interrupt"

This commit is contained in:
Jenkins 2014-09-13 02:29:36 +00:00 committed by Gerrit Code Review
commit 95841b5633
1 changed files with 3 additions and 0 deletions

View File

@ -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