bugfix
This commit is contained in:
parent
8399a28838
commit
7e66ae4d13
@ -118,7 +118,8 @@ class WeChatMediaManager:
|
||||
text = await resp.text()
|
||||
if resp.status == 200:
|
||||
result = json.loads(text)
|
||||
return result['media_id']
|
||||
debug(f'{text=}, {result=}')
|
||||
return result.get('media_id')
|
||||
else:
|
||||
raise Exception(f"WeChat Upload Error: {text}")
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user