From 45af2b33e90066e8d6ffa309de4b3eb6412fd877 Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 22 May 2016 21:51:05 +0300 Subject: testxml: fix crash if sprite tag is empty. --- testxml/testxml.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'testxml') 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: -- cgit v1.2.3-70-g09d2