mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-02 02:30:16 +08:00
fix(runtime): avoid virtual dispatch in Star.on_error fallback
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user