mirror of
https://github.com/aljazceru/bitfinex-api-py.git
synced 2025-12-19 06:44:22 +01:00
Delete HandlerNotFound exception (from bfxapi.websocket.exceptions).
This commit is contained in:
@@ -1,5 +1,3 @@
|
||||
from ..exceptions import HandlerNotFound
|
||||
|
||||
from ...types import serializers
|
||||
|
||||
class PublicChannelsHandler:
|
||||
@@ -37,8 +35,6 @@ class PublicChannelsHandler:
|
||||
if (channel := subscription["channel"]) and channel in self.__handlers.keys():
|
||||
return self.__handlers[channel](_clear(subscription, "event", "channel", "chanId"), *stream)
|
||||
|
||||
raise HandlerNotFound(f"No handler found for channel <{subscription['channel']}>.")
|
||||
|
||||
def __emit(self, event, sub, data):
|
||||
sub_id, should_emit_event = sub["subId"], True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user