Skip to content

Commit 96e9155

Browse files
wabscalekernc
authored andcommitted
BUG: Strengthen signature detection for pybind generated modules
1 parent 641e7a8 commit 96e9155

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pdoc/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1570,7 +1570,7 @@ def _signature_from_string(self):
15701570

15711571
try:
15721572
exec(f'def {string}: pass', _globals, _locals)
1573-
except SyntaxError:
1573+
except Exception:
15741574
continue
15751575
signature = inspect.signature(_locals[self.name])
15761576
if cleanup_docstring and len(strings) == 1:

0 commit comments

Comments
 (0)