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:
parent
aabfd0fa31
commit
0c9b63b036
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user