Commit 3e736ae9 by Chris Dodge

fix crash on command line import when no namespace rename has been given

parent 9f732949
......@@ -159,7 +159,7 @@ def import_from_xml(store, data_dir, course_dirs=None,
# then import all the static content
if static_content_store is not None:
_namespace_rename = target_location_namespace if target_location_namespace is not None else module_store.modules[course_id].location
_namespace_rename = target_location_namespace if target_location_namespace is not None else course_location
# first pass to find everything in /static/
import_static_content(module_store.modules[course_id], course_location, course_data_path, static_content_store,
......
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