From da2b411265dee7eff63b74c1e93a9cb486b2afef Mon Sep 17 00:00:00 2001 From: Davide Casale Date: Tue, 25 Jul 2023 16:05:12 +0200 Subject: [PATCH] Fix missing return statement in public_channels_handler.__raw_book_channel_handler. --- bfxapi/websocket/_handlers/public_channels_handler.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bfxapi/websocket/_handlers/public_channels_handler.py b/bfxapi/websocket/_handlers/public_channels_handler.py index 87c46e4..004416d 100644 --- a/bfxapi/websocket/_handlers/public_channels_handler.py +++ b/bfxapi/websocket/_handlers/public_channels_handler.py @@ -108,7 +108,7 @@ class PublicChannelsHandler: def __raw_book_channel_handler(self, subscription: "Book", stream: List[Any]): if subscription["symbol"].startswith("t"): if all(isinstance(sub_stream, list) for sub_stream in stream[0]): - self.__event_emitter.emit("t_raw_book_snapshot", subscription, \ + return self.__event_emitter.emit("t_raw_book_snapshot", subscription, \ [ serializers.TradingPairRawBook.parse(*sub_stream) \ for sub_stream in stream[0] ])