Skip to content

Commit 1aa2ee4

Browse files
committed
Merge tag 'web-socket-exception' into develop
Tagging version web-socket-exception web-socket-exception
2 parents e199ef7 + ee3c453 commit 1aa2ee4

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

Bot/Exchange/Binance/BinanceWebsocket.py

+3
Original file line numberDiff line numberDiff line change
@@ -117,6 +117,9 @@ def start_user_info(self, callback=None):
117117
def feature_finished(self, future: asyncio.Future, reconnect_fn=None, name=''):
118118
self.logInfo('Feature finished: "{}"'.format(name))
119119

120+
if future.cancelled():
121+
return
122+
120123
exc = future.exception()
121124
if exc:
122125
if (isinstance(exc, ConnectionClosed) and exc.code > 1002) or isinstance(exc, InvalidStatusCode):

0 commit comments

Comments
 (0)