diff --git a/src/griffe/agents/inspector.py b/src/griffe/agents/inspector.py index e60d51e9..d60bb278 100644 --- a/src/griffe/agents/inspector.py +++ b/src/griffe/agents/inspector.py @@ -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: