Commit e576c7be by Chris Dodge

pylint error fix

parent 6a423af7
...@@ -253,7 +253,7 @@ def import_course_draft(xml_module_store, store, draft_store, course_data_path, ...@@ -253,7 +253,7 @@ def import_course_draft(xml_module_store, store, draft_store, course_data_path,
try: try:
xml = data.decode('utf-8') xml = data.decode('utf-8')
except UnicodeDecodeError, e: except UnicodeDecodeError, err:
# seems like on OSX localdev, the OS is making quarantine files # seems like on OSX localdev, the OS is making quarantine files
# in the unzip directory when importing courses # in the unzip directory when importing courses
# so if we blindly try to enumerate through the directory, we'll try # so if we blindly try to enumerate through the directory, we'll try
...@@ -271,7 +271,7 @@ def import_course_draft(xml_module_store, store, draft_store, course_data_path, ...@@ -271,7 +271,7 @@ def import_course_draft(xml_module_store, store, draft_store, course_data_path,
if filename.startswith('._'): if filename.startswith('._'):
continue continue
# Not a 'hidden file', then re-raise exception # Not a 'hidden file', then re-raise exception
raise e raise err
descriptor = system.process_xml(xml) descriptor = system.process_xml(xml)
......
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