Skip to content

Commit

Permalink
finally handle KeyboardInterrupt cleanly - it was easy
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Feb 17, 2022
1 parent 4bb7894 commit 1ca59e8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions cli4/cli4.py
Original file line number Diff line number Diff line change
Expand Up @@ -446,6 +446,8 @@ def do_it(args):
try:
results = run_command(cf, method, command, params, content, files)
write_results(results, output)
except KeyboardInterrupt as e:
sys.exit('cli4: %s - Interrupted\n' % (command))
except Exception as e:
if len(commands) > 1:
continue
Expand Down

0 comments on commit 1ca59e8

Please sign in to comment.