Skip to content

Commit d707f5c

Browse files
committed
temporary fix to suppress an error in doc build with qiskit 0.45
1 parent b04681d commit d707f5c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/_ext/custom_styles/option_parser.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ def _value_repr(value: Any) -> str:
201201
return f"{{{dict_repr}}}"
202202
if value.__class__.__module__ == "builtins":
203203
return f":obj:`{value}`"
204-
if value.__class__.__module__.startswith("qiskit"):
204+
if value.__class__.__module__ and value.__class__.__module__.startswith("qiskit"):
205205
return f"Instance of :class:`.{value.__class__.__name__}`"
206206
if callable(value):
207207
return f"Callable :func:`{value.__name__}`"

0 commit comments

Comments
 (0)