8000 fix: Prevent alias resolution error when searching for anchors · diviyank/python@a190e2c · GitHub
[go: up one dir, main page]

Skip to content

Commit a190e2c

Browse files
committed
fix: Prevent alias resolution error when searching for anchors
Issue mkdocstrings#64: mkdocstrings#64
1 parent 1a131d7 commit a190e2c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/mkdocstrings_handlers/python/handler.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -272,6 +272,8 @@ def collect(self, identifier: str, config: Mapping[str, Any]) -> CollectorItem:
272272
doc_object = self._modules_collection[identifier]
273273
except KeyError as error:
274274
raise CollectionError(f"{identifier} could not be found") from error
275+
except AliasResolutionError as error:
276+
raise CollectionError(str(error)) from error
275277

276278
if not unknown_module:
277279
with suppress(AliasResolutionError):

0 commit comments

Comments
 (0)
0