synology-thumbgen
synology-thumbgen copied to clipboard
Need some exceptions handling
multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/lib64/python3.4/multiprocessing/pool.py", line 119, in worker result = (True, func(_args, *_kwds)) File "/usr/lib64/python3.4/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "psthumbgen.py", line 86, in process_file create_thumbnails(file_path, thumb_dir) File "psthumbgen.py", line 112, in create_thumbnails im.thumbnail((thumb[1], thumb[1]), Image.ANTIALIAS) File "/usr/lib64/python3.4/site-packages/PIL/Image.py", line 1780, in thumbnail self.load() File "/usr/lib64/python3.4/site-packages/PIL/ImageFile.py", line 218, in load raise IOError("image file is truncated (%d bytes not processed)" % len(b)) OSError: image file is truncated (59 bytes not processed) """
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "psthumbgen.py", line 117, in
/storage/nas/fotki/2006/0519-connecto-jansówka/2006-05-19_17.13.01.JPG multiprocessing.pool.RemoteTraceback: """ Traceback (most recent call last): File "/usr/lib64/python3.4/multiprocessing/pool.py", line 119, in worker result = (True, func(_args, *_kwds)) File "/usr/lib64/python3.4/multiprocessing/pool.py", line 44, in mapstar return list(map(*args)) File "psthumbgen.py", line 86, in process_file create_thumbnails(file_path, thumb_dir) File "psthumbgen.py", line 100, in create_thumbnails im = Image.open(source_path) File "/usr/lib64/python3.4/site-packages/PIL/Image.py", line 2256, in open % (filename if filename else fp)) OSError: cannot identify image file '/storage/nas/fotki/2007/04 - Wolsztyn/@eaDir/2007-04-27_12.20.17.jpg/tmp.gilj9M.jpg' """
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "psthumbgen.py", line 120, in