Don't print stack trace on keyboard interrupt

This commit is contained in:
Ivan Habunek 2018-06-15 10:01:18 +02:00
parent aabfd0fa31
commit 0c9b63b036
No known key found for this signature in database
GPG Key ID: CDBD63C43A30BB95
1 changed files with 3 additions and 4 deletions

View File

@ -385,9 +385,8 @@ def main():
try:
run_command(app, user, command_name, args)
except ConsoleError as e:
print_err(str(e))
sys.exit(1)
except ApiError as e:
except (ConsoleError, ApiError) as e:
print_err(str(e))
sys.exit(1)
except KeyboardInterrupt as e:
pass