synology-thumbgen icon indicating copy to clipboard operation
synology-thumbgen copied to clipboard

Need some exceptions handling

Open hrw opened this issue 9 years ago • 0 comments

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 sys.exit(main()) File "psthumbgen.py", line 42, in main pool.map(process_file, files) File "/usr/lib64/python3.4/multiprocessing/pool.py", line 260, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/usr/lib64/python3.4/multiprocessing/pool.py", line 599, in get raise self._value OSError: image file is truncated (59 bytes not processed)

/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 sys.exit(main()) File "psthumbgen.py", line 42, in main pool.map(process_file, files) File "/usr/lib64/python3.4/multiprocessing/pool.py", line 260, in map return self._map_async(func, iterable, mapstar, chunksize).get() File "/usr/lib64/python3.4/multiprocessing/pool.py", line 599, in get raise self._value OSError: cannot identify image file '/storage/nas/fotki/2007/04 - Wolsztyn/@eaDir/2007-04-27_12.20.17.jpg/tmp.gilj9M.jpg'

hrw avatar Sep 27 '14 21:09 hrw