bbgo_origin/python/bbgo/handlers/error.py

13 lines
280 B
Python
Raw Permalink Normal View History

2022-04-13 10:11:21 +00:00
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)