Merge pull request #20381 from edx/asad/prod-230-added-logs

Added logs
This commit is contained in:
AsadAzam
2019-05-06 12:28:40 +05:00
committed by GitHub

View File

@@ -302,7 +302,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]".format(str(block_type), str(block_id)))
yield child
def student_view(self, context):
fragment = Fragment()