diff --git a/freqtrade/rpc/api_server/ws/channel.py b/freqtrade/rpc/api_server/ws/channel.py index e69e51e86..417b7725a 100644 --- a/freqtrade/rpc/api_server/ws/channel.py +++ b/freqtrade/rpc/api_server/ws/channel.py @@ -78,11 +78,12 @@ class WebSocketChannel: self.queue.put(data), timeout=self.drain_timeout ) - return True - except Exception: - # We must catch any exception here to prevent an exception bubbling - # up and stalling the broadcast thread + except asyncio.TimeoutError: return False + except RuntimeError: + pass + + return True async def recv(self): """