diff options
author | Iva Miholic <ivamiho@gmail.com> | 2017-04-21 10:32:21 +0100 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2017-04-21 12:32:21 +0300 |
commit | 6329346e5836e553ab8f96f9d540e907a5d5efdb (patch) | |
tree | 596255a7fd56786781d0c618b5e10bb1a73397ed /astroid/manager.py | |
parent | 1602965b4ef3ce54807de425bfc5bb2073d0c4d8 (diff) | |
download | astroid-git-6329346e5836e553ab8f96f9d540e907a5d5efdb.tar.gz |
Variable name is found_spec, not spec (#422)
Diffstat (limited to 'astroid/manager.py')
-rw-r--r-- | astroid/manager.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/astroid/manager.py b/astroid/manager.py index 346125b4..4e7e35d0 100644 --- a/astroid/manager.py +++ b/astroid/manager.py @@ -130,7 +130,7 @@ class AstroidManager(object): except Exception as ex: # pylint: disable=broad-except util.reraise(exceptions.AstroidImportError( 'Loading {modname} failed with:\n{error}', - modname=modname, path=spec.location, error=ex)) + modname=modname, path=found_spec.location, error=ex)) return self.ast_from_module(module, modname) elif found_spec.type == spec.ModuleType.PY_COMPILED: |