Commit 0e277277 by Calen Pennington

Merge pull request #881 from MITx/fix/cdodge/cas-thumbnail-exception-handling

swallow exceptions when generating thumbnails
parents 5aa474a1 d31a7c6d
......@@ -127,8 +127,10 @@ class ContentStore(object):
'image/jpeg', thumbnail_file)
contentstore().save(thumbnail_content)
except:
raise
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