Closed gabays closed 2 weeks ago
That's a bug as the code is supposed to skip over unloadable files already but does so in a fairly conservative manner by only ignoring certain exceptions on loading. It didn't account for pillow only loading the actual image data on access and throwing an OSError if that fails.
I've shuffled the exception on top around and added OSError to the 'approved' list in there so it shouldn't crash for truncated files anymore.
Hello,
Some images were causing problems during the compilation and the script was crashing.
I had to add a
try/except
to the_extract_Line()
inarrow_dataset.py
:I guess my hack is far from being perfect, but maybe it could lead to a better way to deal with the problem in the future.
Best,
Simon