summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xtestxml/testxml.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 80005be..d629828 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -1186,7 +1186,8 @@ def testItemReplace(id, rootNode, name):
try:
sprite = node.attributes["sprite"].value
except:
- print "error: reading replace sprite name, id=" + str(id)
+ if len(node.attributes) != 0:
+ print "error: reading replace sprite name, id=" + str(id)
continue
checkSpriteName(id, sprite)
for itemNode in node.getElementsByTagName("item"):