diff --git a/slpkg/main.py b/slpkg/main.py index 1ce1f502..2877c874 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -823,12 +823,12 @@ def main(): '-t': argparse.tracking } - #try: - arguments[args[0]]() - #except (KeyError, IndexError) as err: - logger = logging.getLogger(__name__) - logger.info('%s: %s', main.__name__, err) - usage.help_short(1) + try: + arguments[args[0]]() + except (KeyError, IndexError) as err: + logger = logging.getLogger(__name__) + logger.info('%s: %s', main.__name__, err) + usage.help_short(1) if __name__ == '__main__':