X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/21c8ba33691b168fbc69ab7f663d1b6fb99808d9..8132fc186eb0c5fd02c86828c3a4735754296d02:/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