Commit d31a7c6d by Chris Dodge

log and continue on thumbnail generation exception

parent 78df2660
......@@ -127,8 +127,10 @@ class ContentStore(object):
'image/jpeg', thumbnail_file)
contentstore().save(thumbnail_content)
except:
pass # thumbnails are ultimately optional
except Exception, e:
# log and continue as thumbnails are generally considered as optional
logging.exception("Failed to generate thumbnail for {0}. Exception: {1}".format(content.location, str(e)))
return thumbnail_content
......
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