We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd72b81 commit 47dc40eCopy full SHA for 47dc40e
src/lewis/core/utils.py
@@ -67,11 +67,11 @@ def get_submodules(module):
67
try:
68
submodules[module_name] = importlib.import_module(
69
'.{}'.format(module_name), package=module.__name__)
70
- except ImportError as e:
+ except ImportError as import_error:
71
# This is necessary in case random directories are in the path or things can
72
# just not be imported due to other ImportErrors.
73
get_submodules.log.error("ImportError for {module}: {error}"
74
- .format(module=module_name, error=e))
+ .format(module=module_name, error=import_error))
75
76
return submodules
77
0 commit comments