mirror of
https://github.com/ihabunek/toot.git
synced 2024-06-23 06:25:26 +00: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:
|
try:
|
||||||
run_command(app, user, command_name, args)
|
run_command(app, user, command_name, args)
|
||||||
except ConsoleError as e:
|
except (ConsoleError, ApiError) as e:
|
||||||
print_err(str(e))
|
|
||||||
sys.exit(1)
|
|
||||||
except ApiError as e:
|
|
||||||
print_err(str(e))
|
print_err(str(e))
|
||||||
sys.exit(1)
|
sys.exit(1)
|
||||||
|
except KeyboardInterrupt as e:
|
||||||
|
pass
|
||||||
|
|
Loading…
Reference in New Issue
Block a user