From 46ce931d51cf3a3a9e8b6836c4c8c67509ee707b Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Thu, 22 Aug 2013 14:50:45 -0400 Subject: [PATCH] ErrorDescriptors do not have xml_attributes field --- common/lib/xmodule/xmodule/modulestore/xml_importer.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/common/lib/xmodule/xmodule/modulestore/xml_importer.py b/common/lib/xmodule/xmodule/modulestore/xml_importer.py index c793365060..beb255fb14 100644 --- a/common/lib/xmodule/xmodule/modulestore/xml_importer.py +++ b/common/lib/xmodule/xmodule/modulestore/xml_importer.py @@ -250,10 +250,10 @@ def import_module(module, store, course_data_path, static_content_store, # inherited metadata everywhere. # remove any export/import only xml_attributes which are used to wire together draft imports - if 'parent_sequential_url' in module.xml_attributes: + if hasattr(module, 'xml_attributes') and 'parent_sequential_url' in module.xml_attributes: del module.xml_attributes['parent_sequential_url'] - if 'index_in_children_list' in module.xml_attributes: + if hasattr(module, 'xml_attributes') and 'index_in_children_list' in module.xml_attributes: del module.xml_attributes['index_in_children_list'] module.save()