From 159a43ebe641e44f44a967b41f791be10713930f Mon Sep 17 00:00:00 2001 From: nikita Date: Wed, 9 Sep 2026 18:19:52 +0300 Subject: [PATCH] Fixed _callbacks.py did not reraise CancelledError --- src/mab/bot/_callbacks.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mab/bot/_callbacks.py b/src/mab/bot/_callbacks.py index 8699587..761f333 100644 --- a/src/mab/bot/_callbacks.py +++ b/src/mab/bot/_callbacks.py @@ -54,6 +54,8 @@ class Callbacks: try: if not await callback_info.filter(room, event, self._client): continue + except asyncio.CancelledError: + raise except: self._logger.error(traceback.format_exc()) continue