Skip to content

Commit f9c5722

Browse files
authored
Merge pull request #30 from Aradhya-Tripathi/command_info-fix
fix: fixed command info when no docstring is present.
2 parents d2a1e94 + d434653 commit f9c5722

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

trogon/widgets/command_info.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -90,9 +90,11 @@ def compose(self) -> ComposeResult:
9090
tabs.focus()
9191
yield tabs
9292

93-
command_info = self.command_schema.docstring
94-
if command_info:
95-
command_info = command_info.strip()
93+
command_info = (
94+
self.command_schema.docstring.strip()
95+
if self.command_schema.docstring
96+
else "No description available"
97+
)
9698

9799
with ContentSwitcher(
98100
initial="command-info-text", id="command-info-switcher"

0 commit comments

Comments
 (0)