Skip to content

Commit

Permalink
Fix #475 - Handle templates without descriptions (#476)
Browse files Browse the repository at this point in the history
  • Loading branch information
caufieldjh authored Nov 12, 2024
2 parents 50127e5 + 11a88f3 commit bdc8b28
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/ontogpt/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -2179,6 +2179,8 @@ def _get_templates() -> Dict[str, Tuple[str, str]]:
identifier = data["id"].split("/")[-1]
else:
identifier = data["id"]
if "description" not in data.keys():
data["description"] = ""
all_templates[identifier] = (data["name"], data["description"])

return all_templates
Expand Down

0 comments on commit bdc8b28

Please sign in to comment.