Update maimai_best_50.py
This commit is contained in:
parent
3272020fe1
commit
f9c16e9a76
1 changed files with 4 additions and 2 deletions
|
@ -400,7 +400,9 @@ async def generate(msg, payload) -> Tuple[Optional[Image.Image], bool]:
|
|||
status_code=200,
|
||||
headers={'Content-Type': 'application/json', 'accept': '*/*'}, fmt='json')
|
||||
except ValueError as e:
|
||||
if str(e).startswith('400'):
|
||||
if "qq" in payload and msg.target.targetFrom in ['QQ', 'QQ|Group', 'QQ|Guild']:
|
||||
await msg.finish(msg.locale.t("maimai.message.user_unbound"))
|
||||
else:
|
||||
await msg.finish(msg.locale.t("maimai.message.user_not_found"))
|
||||
if str(e).startswith('403'):
|
||||
await msg.finish(msg.locale.t("maimai.message.forbidden"))
|
||||
|
|
Reference in a new issue