WYSIWYG for right-aligned poem lines
[redakcja.git] / apps / fileupload / views.py
index 25112e6..a2025fe 100644 (file)
@@ -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