Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 1ca59e8

Browse files
committed
finally handle KeyboardInterrupt cleanly - it was easy
1 parent 4bb7894 commit 1ca59e8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

cli4/cli4.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -446,6 +446,8 @@ def do_it(args):
446446
try:
447447
results = run_command(cf, method, command, params, content, files)
448448
write_results(results, output)
449+
except KeyboardInterrupt as e:
450+
sys.exit('cli4: %s - Interrupted\n' % (command))
449451
except Exception as e:
450452
if len(commands) > 1:
451453
continue

0 commit comments

Comments
 (0)