Skip to content

Commit 47dc40e

Browse files
author
aaronlong
committed
Changed exception variable to be more descriptive
1 parent cd72b81 commit 47dc40e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/lewis/core/utils.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,11 +67,11 @@ def get_submodules(module):
6767
try:
6868
submodules[module_name] = importlib.import_module(
6969
'.{}'.format(module_name), package=module.__name__)
70-
except ImportError as e:
70+
except ImportError as import_error:
7171
# This is necessary in case random directories are in the path or things can
7272
# just not be imported due to other ImportErrors.
7373
get_submodules.log.error("ImportError for {module}: {error}"
74-
.format(module=module_name, error=e))
74+
.format(module=module_name, error=import_error))
7575

7676
return submodules
7777

0 commit comments

Comments
 (0)