diff --git a/woa/media.py b/woa/media.py index 455535c..8b1984b 100644 --- a/woa/media.py +++ b/woa/media.py @@ -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}")