python-poe-timeless-jewel icon indicating copy to clipboard operation
python-poe-timeless-jewel copied to clipboard

TypeError: int() argument must be a string, a bytes-like object or a number, not 'filter'

Open htam-har opened this issue 4 years ago • 0 comments

Traceback (most recent call last): File "C:\xxx\Desktop\poe\jewel tool\scripts\analyzer.py", line 410, in analyzeJewels(dirs["jewel"]) File "C:\xxx\Desktop\poe\jewel tool\scripts\analyzer.py", line 299, in analyzeJewels nodes = imagesInDirToStrings(jewelDir) File "C:\xxx\Desktop\poe\jewel tool\scripts\analyzer.py", line 31, in imagesInDirToStrings files = Helpers.getFilesByExtFromDir(dir, ".png") File "C:\xxx\Desktop\poe\jewel tool\scripts\helpers.py", line 80, in getFilesByExtFromDir files.sort(key=lambda f: int(filter(str.isdigit, f))) File "C:\xxx\Desktop\poe\jewel tool\scripts\helpers.py", line 80, in files.sort(key=lambda f: int(filter(str.isdigit, f)))

htam-har avatar Oct 22 '20 17:10 htam-har