X-Git-Url: https://git.mdrn.pl/redakcja.git/blobdiff_plain/21c8ba33691b168fbc69ab7f663d1b6fb99808d9..40c0fbfeea2b96bf2b82e3c85dec2c461f707b7b:/apps/fileupload/views.py?ds=inline 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