summaryrefslogtreecommitdiff
path: root/astroid/manager.py
diff options
context:
space:
mode:
authorIva Miholic <ivamiho@gmail.com>2017-04-21 10:32:21 +0100
committerClaudiu Popa <pcmanticore@gmail.com>2017-04-21 12:32:21 +0300
commit6329346e5836e553ab8f96f9d540e907a5d5efdb (patch)
tree596255a7fd56786781d0c618b5e10bb1a73397ed /astroid/manager.py
parent1602965b4ef3ce54807de425bfc5bb2073d0c4d8 (diff)
downloadastroid-git-6329346e5836e553ab8f96f9d540e907a5d5efdb.tar.gz
Variable name is found_spec, not spec (#422)
Diffstat (limited to 'astroid/manager.py')
-rw-r--r--astroid/manager.py2
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: