diff options
Diffstat (limited to 'astroid/brain/brain_gi.py')
-rw-r--r-- | astroid/brain/brain_gi.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/astroid/brain/brain_gi.py b/astroid/brain/brain_gi.py index f8acb42..0860207 100644 --- a/astroid/brain/brain_gi.py +++ b/astroid/brain/brain_gi.py @@ -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() + raise AstroidBuildingException(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('Failed to import module %r' % modname) + raise AstroidBuildingException(modname=modname) return astng def _looks_like_require_version(node): |