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:
Chris Dodge
2012-10-03 09:24:48 -04:00
parent eb7d6c656c
commit fb204084a2
2 changed files with 21 additions and 2 deletions

View File

@@ -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')