From 6fedf9194886293635affe72099efc98f22509c2 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Mon, 15 Apr 2024 12:21:14 +0300 Subject: [PATCH] Set for production --- slpkg/main.py | 13 ++++++------- 1 file changed, 6 insertions(+), 7 deletions(-) diff --git a/slpkg/main.py b/slpkg/main.py index e008c3c7..6d9de8df 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -741,14 +741,13 @@ def main() -> None: 'tracking': menu.tracking, '-t': menu.tracking } - arguments[args[0]]() - # try: - # arguments[args[0]]() - # except (KeyError, IndexError): - # usage.help_short(1) - # except KeyboardInterrupt: - # raise SystemExit(1) + try: + arguments[args[0]]() + except (KeyError, IndexError): + usage.help_short(1) + except KeyboardInterrupt: + raise SystemExit(1) if __name__ == '__main__':