🐛 fix avatar

This commit is contained in:
SiHuan 2022-10-27 21:16:48 +08:00
parent d3a0da3d9f
commit 3e4cd1db1c
No known key found for this signature in database
GPG Key ID: 6D484EBFDD2ED6BA

View File

@ -80,9 +80,10 @@ class AvatarListPlugin(Plugin, BasePlugin):
if character.name != "旅行者":
raise e
logger.debug(f"解析旅行者数据时遇到了错误:{e}")
return None
else:
break
if detail is None:
logger.warning(f"解析[bold]{character.name}[/]的数据时遇到了错误:Too Many Requests", extra={"markup": True})
logger.warning(f"解析[bold]{character.name}[/]的数据时遇到了错误:{e.msg}", extra={"markup": True})
return None
if character.id == 10000005: # 针对男草主
talents = []