1
0
mirror of https://github.com/ihabunek/toot.git synced 2024-11-03 04:17:21 -05:00

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

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