From 665c9c69aea72ef931309bb4f7408de546e58e98 Mon Sep 17 00:00:00 2001 From: Lishiling Date: Wed, 18 Mar 2026 23:21:27 +0800 Subject: [PATCH] fix(runtime): avoid virtual dispatch in Star.on_error fallback --- src/astrbot_sdk/star.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/astrbot_sdk/star.py b/src/astrbot_sdk/star.py index 1c5a2ef7f..ef774b4e7 100644 --- a/src/astrbot_sdk/star.py +++ b/src/astrbot_sdk/star.py @@ -125,7 +125,7 @@ class Star(PluginKVStoreMixin): logger.error("handler 执行失败\n{}", traceback.format_exc()) async def on_error(self, error: Exception, event, ctx) -> None: - await self.default_on_error(error, event, ctx) + await Star.default_on_error(error, event, ctx) @classmethod def __astrbot_is_new_star__(cls) -> bool: