Skip to content

Commit

Permalink
AstroidBuildingException -> AstroidBuildingError
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtylerwalls committed Feb 19, 2024
1 parent 2088414 commit 6d3e6a9
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions pylint/checkers/variables.py
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ def _is_from_future_import(stmt: nodes.ImportFrom, name: str) -> bool | None:
"""Check if the name is a future import from another module."""
try:
module = stmt.do_import_module(stmt.modname)
except astroid.AstroidBuildingException:
except astroid.AstroidBuildingError:
return None

for local_node in module.locals.get(name, []):
Expand Down Expand Up @@ -2059,7 +2059,7 @@ def visit_importfrom(self, node: nodes.ImportFrom) -> None:
name_parts = node.modname.split(".")
try:
module = node.do_import_module(name_parts[0])
except astroid.AstroidBuildingException:
except astroid.AstroidBuildingError:
return
module = self._check_module_attrs(node, module, name_parts[1:])
if not module:
Expand Down
2 changes: 1 addition & 1 deletion pylint/pyreverse/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def _astroid_wrapper(
print(f"parsing {modname}...")
try:
return func(modname)
except astroid.exceptions.AstroidBuildingException as exc:
except astroid.exceptions.AstroidBuildingError as exc:
print(exc)
except Exception: # pylint: disable=broad-except
traceback.print_exc()
Expand Down

0 comments on commit 6d3e6a9

Please sign in to comment.