Archived
1
0
Fork 0

Update best50.py

This commit is contained in:
多羅狼 2024-01-01 19:06:33 +08:00 committed by GitHub
parent b37eef5ebd
commit 3f28da170d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -411,7 +411,10 @@ async def generate(msg, payload) -> Tuple[Optional[Image.Image], bool]:
else:
await msg.finish(msg.locale.t("maimai.message.user_not_found"))
elif str(e).startswith('403'):
await msg.finish(msg.locale.t("maimai.message.forbidden"))
if "qq" in payload:
await msg.finish(msg.locale.t("maimai.message.forbidden.eula"))
else:
await msg.finish(msg.locale.t("maimai.message.forbidden"))
else:
raise