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