Skip to content

Commit c91e5a4

Browse files
authored
fix(CLI): bug when no plugins installed (#2746)
1 parent b02dc02 commit c91e5a4

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

src/ape/_cli.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,6 +60,10 @@ def format_commands(self, ctx, formatter) -> None:
6060

6161
deflist.append((name, cmd.get_short_help_str(limit)))
6262

63+
if not deflist:
64+
# NOTE: Avoid issue with empty sections (now Plugins installed)
65+
continue
66+
6367
with formatter.section(gettext(f"{section_name} Commands")):
6468
formatter.write_dl(deflist)
6569

0 commit comments

Comments
 (0)