Skip to content

Commit

Permalink
[OneBot] Fix forward io source ignore CancelledError when bot stop
Browse files Browse the repository at this point in the history
  • Loading branch information
aicorein committed Dec 11, 2024
1 parent 1bd8760 commit da0e3df
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/melobot/protocols/onebot/v11/io/forward.py
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,9 @@ async def open(self) -> None:
)
break

except asyncio.CancelledError:
raise

except BaseException as e:
self.logger.warning(
f"连接建立失败,{self.retry_delay}s 后自动重试。错误:{e}"
Expand Down

0 comments on commit da0e3df

Please sign in to comment.