print bad image correctly this time

This commit is contained in:
Victor Hall 2023-01-17 16:42:08 -05:00
parent 4eac671544
commit ed05f3aaa9
1 changed files with 2 additions and 2 deletions

View File

@ -72,9 +72,9 @@ class DataLoaderMultiAspect():
try:
image = Image.open(pathname).convert('RGB')
except Exception as e:
print(f"File corrupt. Cannot continue. Error opening image: {self.pathname}")
print(f"File corrupt. Cannot continue. Error opening image: {pathname}")
print(e)
print(f"You should remove this image or try to correct it by resaving it.")
print(f"You should remove this image or try to correct it by resaving it in an image editor.")
exit()
width, height = image.size