1
Fork 0
mirror of https://github.com/Steffo99/greed.git synced 2024-11-25 23:24:19 +00:00

Print exceptions to the console for easier debugging

This commit is contained in:
Steffo 2020-03-27 18:07:13 +01:00
parent 7f4087e046
commit 611eb7e1db

View file

@ -113,6 +113,7 @@ class ChatWorker(threading.Thread):
# If the Sentry integration is enabled, log the exception # If the Sentry integration is enabled, log the exception
if self.sentry_client is not None: if self.sentry_client is not None:
self.sentry_client.captureException() self.sentry_client.captureException()
traceback.print_exception(*sys.exc_info())
def stop(self, reason: str = ""): def stop(self, reason: str = ""):
"""Gracefully stop the worker process""" """Gracefully stop the worker process"""