Added logs

This commit is contained in:
asadazam93
2019-05-21 16:27:30 +05:00
parent 3ed9a75cb3
commit e7ee94552b

View File

@@ -306,7 +306,10 @@ class LibraryContentModule(LibraryContentFields, XModule, StudioEditableModule):
current user.
"""
for block_type, block_id in self.selected_children():
yield self.runtime.get_block(self.location.course_key.make_usage_key(block_type, block_id))
child = self.runtime.get_block(self.location.course_key.make_usage_key(block_type, block_id))
if child is None:
logger.info("Child not found for %s %s", str(block_type), str(block_id))
yield child
def student_view(self, context):
fragment = Fragment()