Skip to content

Commit 0aaa260

Browse files
committed
fix: Catch alias resolution errors when getting aliases for an identifier
Issue-358: mkdocstrings/griffe#358
1 parent 9751b53 commit 0aaa260

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/mkdocstrings_handlers/python/handler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@ def update_env(self, config: Any) -> None: # noqa: ARG002
307307
def get_aliases(self, identifier: str) -> tuple[str, ...]: # noqa: D102 (ignore missing docstring)
308308
try:
309309
data = self._modules_collection[identifier]
310-
except KeyError:
310+
except (KeyError, AliasResolutionError):
311311
return ()
312312
aliases = [data.path]
313313
try:

0 commit comments

Comments
 (0)