summaryrefslogtreecommitdiff
path: root/testxml
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2016-05-22 21:51:05 +0300
committerAndrei Karas <akaras@inbox.ru>2016-05-22 21:51:05 +0300
commit45af2b33e90066e8d6ffa309de4b3eb6412fd877 (patch)
treeaa56b4a4a271c51092880f4d82050fd932bf927c /testxml
parent8a1e1ce6614f0c340b8251cb8ac68386d8577ee4 (diff)
downloadevol-tools-45af2b33e90066e8d6ffa309de4b3eb6412fd877.tar.gz
evol-tools-45af2b33e90066e8d6ffa309de4b3eb6412fd877.tar.bz2
evol-tools-45af2b33e90066e8d6ffa309de4b3eb6412fd877.tar.xz
evol-tools-45af2b33e90066e8d6ffa309de4b3eb6412fd877.zip
testxml: fix crash if sprite tag is empty.
Diffstat (limited to 'testxml')
-rwxr-xr-xtestxml/testxml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index f5dfa28..c701492 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -325,7 +325,7 @@ def testSprites(id, node, checkGender, isNormalDye, isMust, checkAction, iserr):
showMsg(id, "no sprite tag found", "", iserr)
if sprites is not None:
- if len(sprites) == 0:
+ if len(sprites) == 0 or len(sprites[0].childNodes) == 0:
if nosprite == False:
showMsg(id, "no sprite tags found", "", iserr)
elif len(sprites) > 3 and checkGender: