mirror of
https://github.com/AstrBotDevs/AstrBot
synced 2026-07-16 01:40:15 +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())
|
logger.error("handler 执行失败\n{}", traceback.format_exc())
|
||||||
|
|
||||||
async def on_error(self, error: Exception, event, ctx) -> None:
|
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
|
@classmethod
|
||||||
def __astrbot_is_new_star__(cls) -> bool:
|
def __astrbot_is_new_star__(cls) -> bool:
|
||||||
|
|||||||
Reference in New Issue
Block a user