Remove traceback.print_exc and add parameter to error event
This commit is contained in:
parent
0a70d4039d
commit
7911dc1627
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user