From 7911dc162765a21cb47fa2665c935c7535592c4f Mon Sep 17 00:00:00 2001 From: Louis Chauvet Date: Fri, 24 Apr 2020 12:02:03 +0200 Subject: [PATCH] Remove traceback.print_exc and add parameter to error event --- __init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/__init__.py b/__init__.py index ff34f54..07a7c7e 100644 --- a/__init__.py +++ b/__init__.py @@ -22,9 +22,8 @@ class BasePython: except asyncio.CancelledError: pass except Exception: - traceback.print_exc() try: - self.client.dispatch('error', event_name, *args, **kwargs) + self.client.dispatch('error', event_name, traceback.format_exc(), *args, **kwargs) except asyncio.CancelledError: pass