diff --git a/ironicclient/shell.py b/ironicclient/shell.py index 421e71fd4..2815a2329 100644 --- a/ironicclient/shell.py +++ b/ironicclient/shell.py @@ -290,7 +290,9 @@ class HelpFormatter(argparse.HelpFormatter): def main(): try: IronicShell().main(sys.argv[1:]) - + except KeyboardInterrupt: + print("... terminating ironic client", file=sys.stderr) + sys.exit(130) except Exception as e: print(str(e), file=sys.stderr) sys.exit(1)