From 2db85e7f655c1e383ba310f40195844c2867e1b9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Timoth=C3=A9e=20Mazzucotelli?= Date: Tue, 4 Jan 2022 18:29:41 +0100 Subject: [PATCH] fix: Handle more errors when getting signature --- src/griffe/agents/inspector.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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: