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:
|
except asyncio.CancelledError:
|
||||||
pass
|
pass
|
||||||
except Exception:
|
except Exception:
|
||||||
traceback.print_exc()
|
|
||||||
try:
|
try:
|
||||||
self.client.dispatch('error', event_name, *args, **kwargs)
|
self.client.dispatch('error', event_name, traceback.format_exc(), *args, **kwargs)
|
||||||
except asyncio.CancelledError:
|
except asyncio.CancelledError:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user