From 43ccf008ec8bea325a1c4638500ea1f74acd17c7 Mon Sep 17 00:00:00 2001 From: Dimitris Zlatanidis Date: Thu, 27 Apr 2023 09:53:56 +0300 Subject: [PATCH] Updated for logging exception --- slpkg/main.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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)