diff --git a/slpkg/main.py b/slpkg/main.py index a6408fd3..0ac615ab 100644 --- a/slpkg/main.py +++ b/slpkg/main.py @@ -825,9 +825,9 @@ def main() -> None: try: arguments[args[0]]() - except (KeyError, IndexError) as err: + except (KeyError, IndexError): logger = logging.getLogger(__name__) - logger.info('%s: %s', main.__name__, err) + logger.exception('%s:', main.__name__) usage.help_short(1)