Skip to content

Commit

Permalink
🔖 version 0.13.0rc2
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Sep 28, 2024
1 parent af200b9 commit 8517054
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion nonebot/adapters/satori/adapter.py
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,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.self_id} calling API <y>{api}</y>")
log("DEBUG", f"Bot {bot.identity} calling API <y>{api}</y>")
api_handler: Optional[API] = getattr(bot.__class__, api, None)
if api_handler is None:
raise ApiNotAvailable(api)
Expand Down
2 changes: 1 addition & 1 deletion nonebot/adapters/satori/bot.py
Original file line number Diff line number Diff line change
Expand Up @@ -184,7 +184,7 @@ def ready(self) -> bool:
def self_info(self) -> User:
"""Bot 自身信息,仅当 Bot 连接鉴权完成后可用"""
if self._self_info.user is None:
raise RuntimeError(f"Bot {self.self_id} of {self.platform} is not connected!")
raise RuntimeError(f"Bot {self._self_id} of {self.platform} is not connected!")
return self._self_info.user

def _update(self, login: LoginType) -> None:
Expand Down

0 comments on commit 8517054

Please sign in to comment.