Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Catch when theme_name not available
  • Loading branch information
dbieber committed Mar 23, 2025
commit 0ae088aabc1809bc298ef80488e613aac76274aa
5 changes: 4 additions & 1 deletion fire/inspectutils.py
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,10 @@ def Info(component):
"""
try:
from IPython.core import oinspect # pylint: disable=import-outside-toplevel,g-import-not-at-top
inspector = oinspect.Inspector(theme_name="Neutral")
try:
inspector = oinspect.Inspector(theme_name="Neutral")
except TypeError: # Only recent versions of IPython support theme_name.
inspector = oinspect.Inspector()
info = inspector.info(component)

# IPython's oinspect.Inspector.info may return '<no docstring>'
Expand Down
Loading