summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2014-12-19 01:33:48 +0300
committerAndrei Karas <akaras@inbox.ru>2014-12-19 01:33:48 +0300
commita27bbb07c8fe87fdc44421655f784d14cb7ee1d9 (patch)
tree567d1c592ed461d012ac5defd3957306b1726923 /testxml
parent0a0716853731b854712e6b2a8770a0bc452d34bd (diff)
downloadevol-tools-a27bbb07c8fe87fdc44421655f784d14cb7ee1d9.tar.gz
evol-tools-a27bbb07c8fe87fdc44421655f784d14cb7ee1d9.tar.bz2
evol-tools-a27bbb07c8fe87fdc44421655f784d14cb7ee1d9.tar.xz
evol-tools-a27bbb07c8fe87fdc44421655f784d14cb7ee1d9.zip
testxml: do not report as error empty replace tag in items.xml
Diffstat (limited to 'testxml')
-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"):