Skip to content

Commit

Permalink
fix: Handle more errors when getting signature
Browse files Browse the repository at this point in the history
  • Loading branch information
pawamoy committed Jan 4, 2022
1 parent 6129e50 commit 2db85e7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/griffe/agents/inspector.py
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ def handle_function(self, node: ObjectNode, labels: set | None = None): # noqa:
"""
try:
signature = getsignature(node.obj)
except (ValueError, TokenError, TypeError):
except (AttributeError, ValueError, TokenError, TypeError):
parameters = None
returns = None
else:
Expand Down

0 comments on commit 2db85e7

Please # to comment.