mirror of
https://github.com/rozniak/xfce-winxp-tc.git
synced 2026-05-01 19:51:33 +00:00
Prelim: themgood - skip BMPs that PIL doesn't like, print error and continue
This commit is contained in:
@@ -77,7 +77,11 @@ def main():
|
|||||||
args[0] = "BGRA"
|
args[0] = "BGRA"
|
||||||
im.tile = [im.tile[0]._replace(args=tuple(args))]
|
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__":
|
if __name__ == "__main__":
|
||||||
|
|||||||
Reference in New Issue
Block a user