#如果atuserlist_set 为空,就打印XML
This commit is contained in:
@@ -354,6 +354,9 @@ class PointTradePlugin(MessagePluginInterface):
|
|||||||
# 现在set中存在{''}这种,请过滤掉
|
# 现在set中存在{''}这种,请过滤掉
|
||||||
atuserlist_set.discard('')
|
atuserlist_set.discard('')
|
||||||
self.LOG.info(f"解析到的 @用户列表: {atuserlist_set}")
|
self.LOG.info(f"解析到的 @用户列表: {atuserlist_set}")
|
||||||
|
#如果atuserlist_set 为空,就打印XML
|
||||||
|
if not atuserlist_set:
|
||||||
|
self.LOG.info(f"解析到的 @用户列表为空,XML:{xml}")
|
||||||
return atuserlist_set
|
return atuserlist_set
|
||||||
except ET.ParseError as e:
|
except ET.ParseError as e:
|
||||||
self.LOG.error(f"解析 XML 失败: {e}")
|
self.LOG.error(f"解析 XML 失败: {e}")
|
||||||
|
|||||||
Reference in New Issue
Block a user