From 0bd39d2344eb3d737a46bbee460d3fd800509743 Mon Sep 17 00:00:00 2001 From: STDquantum <405720329@qq.com> Date: Wed, 13 Dec 2023 16:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E4=BA=86=E5=A6=82=E6=9E=9C?= =?UTF-8?q?=E8=AF=AD=E9=9F=B3=E6=B2=A1=E8=A2=AB=E8=BD=AC=E8=BF=87=E6=96=87?= =?UTF-8?q?=E5=AD=97=EF=BC=8C=E9=82=A3=E4=B9=88=E8=BF=99=E6=9D=A1=E8=AF=AD?= =?UTF-8?q?=E9=9F=B3=E6=98=BE=E7=A4=BA=E4=B8=8D=E4=BA=86=E7=9A=84=E9=97=AE?= =?UTF-8?q?=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/DataBase/media_msg.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/DataBase/media_msg.py b/app/DataBase/media_msg.py index 9b77605..b188f8e 100644 --- a/app/DataBase/media_msg.py +++ b/app/DataBase/media_msg.py @@ -73,7 +73,7 @@ class MediaMsg: root = ET.fromstring(content) transtext = root.find(".//voicetrans").get("transtext") return transtext - except ET.ParseError: + except: return ""