diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-05-22 21:51:05 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-05-22 21:51:05 +0300 |
commit | 45af2b33e90066e8d6ffa309de4b3eb6412fd877 (patch) | |
tree | aa56b4a4a271c51092880f4d82050fd932bf927c /testxml | |
parent | 8a1e1ce6614f0c340b8251cb8ac68386d8577ee4 (diff) | |
download | evol-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-x | testxml/testxml.py | 2 |
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: |