Commit 713c2a44 by Don Mitchell

Handle bad children pointers during publish

    rather than aborting the publish, ignore them.
    Needed for import
parent 242f3ce5
...@@ -627,7 +627,12 @@ class DraftModuleStore(MongoModuleStore): ...@@ -627,7 +627,12 @@ class DraftModuleStore(MongoModuleStore):
""" """
Depth first publishing from the given location Depth first publishing from the given location
""" """
item = self.get_item(item_location) try:
# handle child does not exist w/o killing publish
item = self.get_item(item_location)
except ItemNotFoundError:
log.warning('Cannot find: %s', item_location)
return
# publish the children first # publish the children first
if item.has_children: if item.has_children:
......
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