summaryrefslogtreecommitdiff
path: root/astroid/tree/scoped_nodes.py
diff options
context:
space:
mode:
authorClaudiu Popa <pcmanticore@gmail.com>2015-12-06 17:11:50 +0200
committerClaudiu Popa <pcmanticore@gmail.com>2015-12-06 17:11:50 +0200
commit853726a295a8b4000bbb7ff9032cd1573e5ddf6c (patch)
tree2fab17a71eaf2a130066846e42e94e8c393d9afd /astroid/tree/scoped_nodes.py
parent95b2579c06858171b3c997b301d253ffd4577818 (diff)
downloadastroid-git-853726a295a8b4000bbb7ff9032cd1573e5ddf6c.tar.gz
AstroidBuildingException is now AstroidBuildingError, the former being removed in 2.0.
Diffstat (limited to 'astroid/tree/scoped_nodes.py')
-rw-r--r--astroid/tree/scoped_nodes.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/tree/scoped_nodes.py b/astroid/tree/scoped_nodes.py
index 5c93dc97..6aa5948c 100644
--- a/astroid/tree/scoped_nodes.py
+++ b/astroid/tree/scoped_nodes.py
@@ -460,7 +460,7 @@ class Module(LocalsDictNodeNG):
elif self.package:
try:
result = [self.import_module(name, relative_only=True)]
- except (exceptions.AstroidBuildingException, SyntaxError):
+ except (exceptions.AstroidBuildingError, SyntaxError):
util.reraise(exceptions.AttributeInferenceError(target=self,
attribute=name,
context=context))
@@ -521,7 +521,7 @@ class Module(LocalsDictNodeNG):
absmodname = self.relative_to_absolute_name(modname, level)
try:
return MANAGER.ast_from_module_name(absmodname)
- except exceptions.AstroidBuildingException:
+ except exceptions.AstroidBuildingError:
# we only want to import a sub module or package of this module,
# skip here
if relative_only:
@@ -2252,7 +2252,7 @@ def locals_import_from(node, locals_):
if name == '*':
try:
imported = node.do_import_module()
- except exceptions.AstroidBuildingException:
+ except exceptions.AstroidBuildingError:
continue
for name in imported.wildcard_import_names():
locals_[name].append(node)