修复了如果语音没被转过文字,那么这条语音显示不了的问题

This commit is contained in:
STDquantum 2023-12-13 16:35:09 +08:00
parent 62febf63c7
commit 0bd39d2344

View File

@ -73,7 +73,7 @@ class MediaMsg:
root = ET.fromstring(content) root = ET.fromstring(content)
transtext = root.find(".//voicetrans").get("transtext") transtext = root.find(".//voicetrans").get("transtext")
return transtext return transtext
except ET.ParseError: except:
return "" return ""