From b080286770f709c5bdbd5c36b5d1a581d935d85a Mon Sep 17 00:00:00 2001 From: Rafal Wojdyla Date: Mon, 21 Dec 2020 14:23:31 +0100 Subject: [PATCH] Fixes #8568. Ignore TypeError from getslots in isslotsattribute --- sphinx/ext/autodoc/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sphinx/ext/autodoc/__init__.py b/sphinx/ext/autodoc/__init__.py index a23547a6169..4bf97cc851a 100644 --- a/sphinx/ext/autodoc/__init__.py +++ b/sphinx/ext/autodoc/__init__.py @@ -2114,7 +2114,7 @@ def isslotsattribute(self) -> bool: return True else: return False - except (AttributeError, ValueError): + except (AttributeError, ValueError, TypeError): return False def import_object(self, raiseerror: bool = False) -> bool: