X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/21c8ba33691b168fbc69ab7f663d1b6fb99808d9..c6080aa55a8852f1c9aa05d80c2fd0c91ff48f12:/apps/fileupload/views.py 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