Skip to content

Commit

Permalink
fix is_exchange_type
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver-zehentleitner committed May 15, 2024
1 parent e9e1853 commit 24eef58
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion unicorn_binance_websocket_api/manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -3479,7 +3479,7 @@ def is_exchange_type(self, exchange_type: str = None):
:type exchange_type: str
:return: bool
"""
if exchange_type is not None or self.exchange_type == exchange_type:
if exchange_type is not None and self.exchange_type == exchange_type:
logger.debug(f"BinanceWebSocketApiManager.is_exchange_type({self.exchange_type}=={exchange_type} = True)")
return True
else:
Expand Down

0 comments on commit 24eef58

Please sign in to comment.