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