small fixes and improvements to examples

This commit is contained in:
Fabio Pliger
2024-05-09 01:15:13 -05:00
parent 343f0590ed
commit 90d891e48b
3 changed files with 18 additions and 2 deletions

View File

@@ -45,7 +45,7 @@ def create_component_details(component_label, component):
"""
# Get the example from the examples catalog
example = component["instance"]
details = example.__doc__ or f"Details missing for component {component_label}"
details = getattr(example, '__doc__', '') or f"Details missing for component {component_label}"
return div(
[