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

Simplify main

No need to handle this stuff here
This commit is contained in:
Ivan Habunek 2023-12-05 10:41:54 +01:00
parent 78f994c0f1
commit d91f3477a8
No known key found for this signature in database
GPG Key ID: F5F0623FF5EBCB3D

View File

@ -1,15 +1,3 @@
import sys
from toot.cli import cli
from toot.exceptions import ConsoleError
from toot.output import print_err
from toot.settings import load_settings
try:
defaults = load_settings().get("commands", {})
cli(default_map=defaults)
except ConsoleError as ex:
print_err(str(ex))
sys.exit(1)
except KeyboardInterrupt:
print_err("Aborted")
sys.exit(1)
cli()