1
0
mirror of https://github.com/EDCD/EDMarketConnector.git synced 2025-04-14 08:17:13 +03:00

Use logger.exception() to take care of showing the exception.

This commit is contained in:
Athanasius 2020-09-06 19:19:23 +01:00
parent 50c7220455
commit 815b4695a6

View File

@ -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: