bugfix
This commit is contained in:
parent
fb25b4a28d
commit
6cf4dbb8cc
@ -3,6 +3,7 @@ import inspect
|
||||
import traceback
|
||||
import weakref
|
||||
from typing import Callable, Any
|
||||
from appPublic.log import debug, error, exception, warning
|
||||
|
||||
|
||||
class WeakCallback:
|
||||
@ -141,8 +142,7 @@ class EventDispatcher:
|
||||
return True
|
||||
|
||||
except Exception as e:
|
||||
|
||||
print(
|
||||
debug(
|
||||
f"[EventDispatcher] "
|
||||
f"handler failed: "
|
||||
f"event={event_name}, "
|
||||
@ -150,7 +150,8 @@ class EventDispatcher:
|
||||
)
|
||||
|
||||
if self.log_traceback:
|
||||
traceback.print_exc()
|
||||
debug(f'{trackback.format_exc()}')
|
||||
# traceback.print_exc()
|
||||
|
||||
await self._run_error_handler(
|
||||
event_name,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user