Merge pull request #6203 from edx/jeskew/fix_pylint_error

Fix assert.
This commit is contained in:
Clinton Blackburn
2014-12-09 16:02:07 -05:00

View File

@@ -1486,7 +1486,7 @@ class MongoModuleStore(ModuleStoreDraftAndPublished, ModuleStoreWriteBase, Mongo
elif isinstance(course_assets['assets'], list):
# This record is in the old course assets format.
# Ensure that no data exists before updating the format.
assert(len(course_assets['assets']), 0)
assert(len(course_assets['assets']) == 0)
# Update the format to a dict.
self.asset_collection.update(
{'_id': course_assets['_id']},