summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFedja Beader <fedja@protonmail.ch>2024-10-15 17:11:21 +0200
committerFedja Beader <fedja@protonmail.ch>2024-10-15 17:11:55 +0200
commitaf4547c5670128995f9773a60c8030ccaa019281 (patch)
treeb152f62ebec08e4369ffb70dd99548261be2c6fd
parent6419c7f6dba05e5dfb06074e957755e6f53e0344 (diff)
downloadtools-af4547c5670128995f9773a60c8030ccaa019281.tar.gz
tools-af4547c5670128995f9773a60c8030ccaa019281.tar.bz2
tools-af4547c5670128995f9773a60c8030ccaa019281.tar.xz
tools-af4547c5670128995f9773a60c8030ccaa019281.zip
Fix TypeError: '>' not supported between instances of 'str' and 'int'
File "/builds/specing/tools/testxml/./testxml.py", line 568, in testSpriteFile if variants > 0 and variant >= variants: ^^^^^^^^^^^^
-rwxr-xr-xtestxml/testxml.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/testxml/testxml.py b/testxml/testxml.py
index 9e92d75..befa3cf 100755
--- a/testxml/testxml.py
+++ b/testxml/testxml.py
@@ -441,7 +441,7 @@ def testSpriteFile(id, fullPath, file, fileLoc, dnum, variant, checkAction, iser
return
try:
- variants = dom.documentElement.attributes["variants"].value
+ variants = int(dom.documentElement.attributes["variants"].value)
except:
variants = 0