Improve exception handling on critical errors

This commit is contained in:
Matthias
2020-05-08 11:44:24 +02:00
parent 5b92387732
commit c560de4111
2 changed files with 8 additions and 6 deletions

View File

@@ -18,6 +18,9 @@ def start_trading(args: Dict[str, Any]) -> int:
try:
worker = Worker(args)
worker.run()
except Exception as e:
logger.error(str(e))
logger.exception("Fatal exception!")
except KeyboardInterrupt:
logger.info('SIGINT received, aborting ...')
finally: