diff --git a/ironicclient/shell.py b/ironicclient/shell.py index 1ee9f329a..753fc113d 100644 --- a/ironicclient/shell.py +++ b/ironicclient/shell.py @@ -288,7 +288,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)