diff --git a/ws_reverse_v11.py b/ws_reverse_v11.py index 8321780..4d8d7a1 100644 --- a/ws_reverse_v11.py +++ b/ws_reverse_v11.py @@ -94,7 +94,7 @@ async def push_event(self, event: dict) -> None: ) ) except Exception: - if not hasattr(self, "event_ws"): + if hasattr(self, "event_ws"): logger.warning(f"推送事件时出现错误:{traceback.format_exc()}") await self.reconnect() await self.push_event(event)