From 815b4695a66ca7eec2c447a354b73796619f26a9 Mon Sep 17 00:00:00 2001 From: Athanasius Date: Sun, 6 Sep 2020 19:19:23 +0100 Subject: [PATCH] Use logger.exception() to take care of showing the exception. --- EDMC.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/EDMC.py b/EDMC.py index 5764d32e..80ddd992 100755 --- a/EDMC.py +++ b/EDMC.py @@ -131,8 +131,8 @@ def main(): except Exception: logger.debug(f'Invalid journal entry {line!r}') - except Exception as e: - logger.error(f"Can't read Journal file: {str(e)}") + except Exception: + logger.exception("Can't read Journal file") sys.exit(EXIT_SYS_ERR) if not monitor.cmdr: