From 7e66ae4d1359929069e0fffbf7051ad9156c6f87 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Tue, 3 Mar 2026 18:07:09 +0800 Subject: [PATCH] bugfix --- woa/media.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) 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}")