Commit 948615d6 by cahrens

Log warning if thumbnail cannot be deleted.

parent fe6ed085
......@@ -184,7 +184,7 @@ def update_asset(request, org, course, name, asset_id):
# remove from any caching
del_cached_content(thumbnail_content.location)
except:
pass # OK if this is left dangling
logging.warning('Could not delete thumbnail: ' + content.thumbnail_location)
# delete the original
contentstore().delete(content.get_id())
......
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