Commit fc5c9f21 authored by Romain Bignon's avatar Romain Bignon

fix crash when a file does not have a mimetype

parent 132f3460
......@@ -65,7 +65,7 @@ class BlogListAction(ViewAction):
mimetype = f.obj.get_mimetype()
if not mimetype.startswith('text'):
if mimetype is None or not mimetype.startswith('text'):
post = self.Post()
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment