diff --git a/astrbot/core/platform/sources/weixin_oc/weixin_oc_adapter.py b/astrbot/core/platform/sources/weixin_oc/weixin_oc_adapter.py index c47b58087e..be0d9a9e51 100644 --- a/astrbot/core/platform/sources/weixin_oc/weixin_oc_adapter.py +++ b/astrbot/core/platform/sources/weixin_oc/weixin_oc_adapter.py @@ -902,6 +902,13 @@ async def run(self) -> None: "weixin_oc(%s): inbound long-poll timeout", self.meta().id, ) + except Exception as e: + logger.error( + "weixin_oc(%s): poll inbound updates failed, will retry after 5 seconds: %s", + self.meta().id, + e, + ) + await asyncio.sleep(5) except asyncio.CancelledError: raise except Exception as e: