Commit fd942ffb by Adam Palay Committed by Zia Fazal

change ItemNotFoundErrors to log.warning in x_module.py

parent 934b8302
......@@ -336,7 +336,15 @@ class XModuleMixin(XBlockMixin):
child = self.runtime.get_block(child_loc)
child.runtime.export_fs = self.runtime.export_fs
except ItemNotFoundError:
log.exception(u'Unable to load item {loc}, skipping'.format(loc=child_loc))
log.warning(u'Unable to load item {loc}, skipping'.format(loc=child_loc))
dog_stats_api.increment(
"xmodule.item_not_found_error",
tags=[
u"course_id:{}".format(child_loc.course_key),
u"block_type:{}".format(child_loc.block_type),
u"parent_block_type:{}".format(self.location.block_type),
]
)
continue
self._child_instances.append(child)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment