Archived
1
0
Fork 0
This commit is contained in:
多羅狼 2023-08-20 02:56:17 +08:00 committed by GitHub
parent f9c16e9a76
commit 12baa78911
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -400,6 +400,7 @@ 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: