Skip to content

Commit

Permalink
fix: 尝试修复已不存在的 bot 属性引用 #36
Browse files Browse the repository at this point in the history
  • Loading branch information
WindowsSov8forUs committed Dec 26, 2024
1 parent 35e8d4f commit 85bd8e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion nonebot/adapters/satori/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -286,7 +286,7 @@ def payload_to_event(payload: SatoriEvent) -> Event:

@override
async def _call_api(self, bot: Bot, api: str, **data: Any) -> Any:
log("DEBUG", f"Bot {bot.identity} calling API <y>{api}</y>")
log("DEBUG", f"Bot {bot.platform}:{bot.self_info.id} calling API <y>{api}</y>")
api_handler: Optional[API] = getattr(bot.__class__, api, None)
if api_handler is None:
raise ApiNotAvailable(api)
Expand Down

0 comments on commit 85bd8e3

Please sign in to comment.