mirror of
https://github.com/c9s/bbgo.git
synced 2024-11-23 23:35:14 +00:00
13 lines
280 B
Python
13 lines
280 B
Python
|
from ..data import Event
|
||
|
from ..enums import EventType
|
||
|
from .handler import Handler
|
||
|
|
||
|
|
||
|
class ErrorHandler(Handler):
|
||
|
|
||
|
def __call__(self, event: Event) -> None:
|
||
|
if event.event_type != EventType.ERROR:
|
||
|
return
|
||
|
|
||
|
super(ErrorHandler, self).__call__(event)
|