From 611eb7e1db45ac768585c18a3def79acec412592 Mon Sep 17 00:00:00 2001 From: Stefano Pigozzi Date: Fri, 27 Mar 2020 18:07:13 +0100 Subject: [PATCH] Print exceptions to the console for easier debugging --- worker.py | 1 + 1 file changed, 1 insertion(+) diff --git a/worker.py b/worker.py index e26b661..2361a81 100644 --- a/worker.py +++ b/worker.py @@ -113,6 +113,7 @@ class ChatWorker(threading.Thread): # If the Sentry integration is enabled, log the exception if self.sentry_client is not None: self.sentry_client.captureException() + traceback.print_exception(*sys.exc_info()) def stop(self, reason: str = ""): """Gracefully stop the worker process"""