Skip to content

Commit

Permalink
Try using System.find_object() in System.expandName() so it can bette…
Browse files Browse the repository at this point in the history
…r follow aliases.
  • Loading branch information
tristanlatr committed Apr 3, 2024
1 parent 011ebcf commit 797eb0c
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion pydoctor/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -351,7 +351,12 @@ class E:
break
nxt = self.system.objForFullName(full_name)
if nxt is None:
break
try:
nxt = self.system.find_object(full_name)
except (RecursionError, LookupError):
break
if nxt is None:
break
obj = nxt
return '.'.join([full_name] + parts[i + 1:])

Expand Down

0 comments on commit 797eb0c

Please sign in to comment.