Skip to content

Commit

Permalink
fix a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
This-is-XiaoDeng committed Oct 21, 2023
1 parent c3a780b commit 12d0243
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ws_reverse_v11.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 12d0243

Please sign in to comment.