fix: keep weixin_oc polling after inbound timeouts (#6915)

* fix: keep weixin_oc polling after inbound timeouts

* Delete tests/test_weixin_oc_adapter.py

---------

Co-authored-by: Soulter <37870767+Soulter@users.noreply.github.com>
This commit is contained in:
Rainor_da!
2026-03-25 16:20:18 +08:00
committed by GitHub
parent 5e63635d52
commit 2031f3da74

View File

@@ -895,7 +895,13 @@ class WeixinOCAdapter(Platform):
await asyncio.sleep(self.qr_poll_interval)
continue
await self._poll_inbound_updates()
try:
await self._poll_inbound_updates()
except asyncio.TimeoutError:
logger.debug(
"weixin_oc(%s): inbound long-poll timeout",
self.meta().id,
)
except asyncio.CancelledError:
raise
except Exception as e: