Prelim: themgood - skip BMPs that PIL doesn't like, print error and continue

This commit is contained in:
Rory Fewell
2025-02-27 17:58:24 +00:00
parent 154f83c18d
commit 012d2eb87f

View File

@@ -77,7 +77,11 @@ def main():
args[0] = "BGRA"
im.tile = [im.tile[0]._replace(args=tuple(args))]
im.save("out/" + str(entry.name) + ".png")
try:
im.save("out/" + str(entry.name) + ".png")
except Exception as e:
print("Unhappy with " + str(entry.name))
print(e)
if __name__ == "__main__":