diff options
author | Andrei Karas <akaras@inbox.ru> | 2014-12-19 01:33:48 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2014-12-19 01:33:48 +0300 |
commit | a27bbb07c8fe87fdc44421655f784d14cb7ee1d9 (patch) | |
tree | 567d1c592ed461d012ac5defd3957306b1726923 /testxml/testxml.py | |
parent | 0a0716853731b854712e6b2a8770a0bc452d34bd (diff) | |
download | evol-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/testxml.py')
-rwxr-xr-x | testxml/testxml.py | 3 |
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"): |