修复了如果语音没被转过文字,那么这条语音显示不了的问题
This commit is contained in:
@@ -73,7 +73,7 @@ class MediaMsg:
|
||||
root = ET.fromstring(content)
|
||||
transtext = root.find(".//voicetrans").get("transtext")
|
||||
return transtext
|
||||
except ET.ParseError:
|
||||
except:
|
||||
return ""
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user