X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/21c8ba33691b168fbc69ab7f663d1b6fb99808d9..dab276bc0a4bdb890d7a356db21abf40fe7311bb:/apps/fileupload/views.py?ds=sidebyside diff --git a/apps/fileupload/views.py b/apps/fileupload/views.py index 25112e6b..a2025fe7 100644 --- a/apps/fileupload/views.py +++ b/apps/fileupload/views.py @@ -20,7 +20,7 @@ else: def thumbnail(relpath): try: return default.backend.get_thumbnail(relpath, "x50").url - except IOError: + except (IOError, ValueError): # That's not an image. No thumb. return None