Commit 7a75b94f by Don Mitchell

Support xml blocks w/ multiple parents

parent e900a47b
......@@ -233,7 +233,12 @@ def import_from_xml(
"""
if subtree.has_children:
for child in subtree.get_children():
all_locs.remove(child.location)
try:
all_locs.remove(child.location)
except KeyError:
# ContentStoreTest.test_image_import has non-tree children
# so, make this more robust
pass
if verbose:
log.debug('importing module location {loc}'.format(loc=child.location))
......
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