fix
This commit is contained in:
parent
f9c16e9a76
commit
12baa78911
1 changed files with 1 additions and 0 deletions
|
@ -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:
|
||||
|
|
Reference in a new issue