for get_all_content_info_for_course(), return a list of the MongoDB query rather than a cursor object. Also add some documentation (in a comment) as to what a caller should expect
This commit is contained in:
@@ -515,7 +515,7 @@ def upload_asset(request, org, course, coursename):
|
||||
except:
|
||||
# catch, log, and continue as thumbnails are not a hard requirement
|
||||
logging.error('Failed to generate thumbnail for {0}. Continuing...'.format(name))
|
||||
raise
|
||||
|
||||
|
||||
return HttpResponse('Upload completed')
|
||||
|
||||
|
||||
Reference in New Issue
Block a user