diff options
author | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-06 17:11:50 +0200 |
---|---|---|
committer | Claudiu Popa <pcmanticore@gmail.com> | 2015-12-06 17:11:50 +0200 |
commit | e4ecd3d2805abfbd6f6b457939d4026fa19446ce (patch) | |
tree | c93ce180dce6ae47450d45f7dac0e5c9aa8f5923 /astroid/brain/brain_gi.py | |
parent | 97c9092852d69f9b98b1276e3d10e9d29c7c0224 (diff) | |
download | astroid-e4ecd3d2805abfbd6f6b457939d4026fa19446ce.tar.gz |
AstroidBuildingException is now AstroidBuildingError.
The first name will exist until astroid 2.0.
Diffstat (limited to 'astroid/brain/brain_gi.py')
-rw-r--r-- | astroid/brain/brain_gi.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/astroid/brain/brain_gi.py b/astroid/brain/brain_gi.py index 0860207..d2c133d 100644 --- a/astroid/brain/brain_gi.py +++ b/astroid/brain/brain_gi.py @@ -9,7 +9,7 @@ import sys import re import warnings -from astroid import MANAGER, AstroidBuildingException, nodes +from astroid import MANAGER, AstroidBuildingError, nodes from astroid.builder import AstroidBuilder @@ -114,7 +114,7 @@ def _gi_build_stub(parent): def _import_gi_module(modname): # we only consider gi.repository submodules if not modname.startswith('gi.repository.'): - raise AstroidBuildingException(modname=modname) + raise AstroidBuildingError(modname=modname) # build astroid representation unless we already tried so if modname not in _inspected_modules: modnames = [modname] @@ -155,7 +155,7 @@ def _import_gi_module(modname): else: astng = _inspected_modules[modname] if astng is None: - raise AstroidBuildingException(modname=modname) + raise AstroidBuildingError(modname=modname) return astng def _looks_like_require_version(node): |