Commit 95478922 by Calen Pennington

Whitespace fixes

parent 86be73f6
...@@ -474,11 +474,11 @@ class XMLModuleStore(ModuleStoreBase): ...@@ -474,11 +474,11 @@ class XMLModuleStore(ModuleStoreBase):
if category == "static_tab": if category == "static_tab":
for tab in course_descriptor.tabs or []: for tab in course_descriptor.tabs or []:
if tab.get('url_slug') == slug: if tab.get('url_slug') == slug:
module.metadata['display_name'] = tab['name'] module.metadata['display_name'] = tab['name']
module.metadata['data_dir'] = course_dir module.metadata['data_dir'] = course_dir
self.modules[course_descriptor.id][module.location] = module self.modules[course_descriptor.id][module.location] = module
except Exception, e: except Exception, e:
logging.exception("Failed to load {0}. Skipping... Exception: {1}".format(filepath, str(e))) logging.exception("Failed to load {0}. Skipping... Exception: {1}".format(filepath, str(e)))
system.error_tracker("ERROR: " + str(e)) system.error_tracker("ERROR: " + str(e))
def get_instance(self, course_id, location, depth=0): def get_instance(self, course_id, location, depth=0):
......
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