Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions cms/djangoapps/contentstore/views/assets.py
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ def _upload_asset(request, location):
modulestore().get_item(old_location)
except:
# no return it as a Bad Request response
logging.error('Could not find course' + old_location)
logging.error("Could not find course: %s", old_location)
return HttpResponseBadRequest()

# compute a 'filename' which is similar to the location formatting, we're
Expand Down Expand Up @@ -214,7 +214,7 @@ def get_asset_location(asset_id):
# remove from any caching
del_cached_content(thumbnail_content.location)
except:
logging.warning('Could not delete thumbnail: ' + content.thumbnail_location)
logging.warning('Could not delete thumbnail: %s', content.thumbnail_location)

# delete the original
contentstore().delete(content.get_id())
Expand Down