From e576c7be15567c202cec825f314ced09e14c7490 Mon Sep 17 00:00:00 2001 From: Chris Dodge Date: Tue, 20 Aug 2013 00:40:20 -0400 Subject: [PATCH] pylint error fix --- 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 becc512e71..7bea0fdcac 100644 --- a/common/lib/xmodule/xmodule/modulestore/xml_importer.py +++ b/common/lib/xmodule/xmodule/modulestore/xml_importer.py @@ -253,7 +253,7 @@ def import_course_draft(xml_module_store, store, draft_store, course_data_path, try: xml = data.decode('utf-8') - except UnicodeDecodeError, e: + except UnicodeDecodeError, err: # seems like on OSX localdev, the OS is making quarantine files # in the unzip directory when importing courses # 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, if filename.startswith('._'): continue # Not a 'hidden file', then re-raise exception - raise e + raise err descriptor = system.process_xml(xml)