web接口修复弹幕解析错误

This commit is contained in:
John Smith 2024-12-25 23:02:57 +08:00
parent 68eae6b6aa
commit 41ee24c08c

View File

@ -115,7 +115,7 @@ class DanmakuMessage:
mode_info = info[0][15]
try:
face = mode_info['user']['base']['face']
except KeyError:
except (TypeError, KeyError):
face = ''
if len(info[3]) != 0: