Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

web-ontogpt raises KeyError #475

Closed
caufieldjh opened this issue Nov 12, 2024 · 1 comment · Fixed by #476
Closed

web-ontogpt raises KeyError #475

caufieldjh opened this issue Nov 12, 2024 · 1 comment · Fixed by #476

Comments

@caufieldjh
Copy link
Member

of course I had to discover this one during a live demo.

Running web-ontogpt raises a KeyError because it can't find the description key for one or more templates.

~/ontogpt$ web-ontogpt
Traceback (most recent call last):
  File "/home/harry/ontogpt/.venv/bin/web-ontogpt", line 3, in <module>
    from ontogpt.webapp.main import start
  File "/home/harry/ontogpt/src/ontogpt/webapp/main.py", line 24, in <module>
    all_templates = _get_templates()
  File "/home/harry/ontogpt/src/ontogpt/cli.py", line 2182, in _get_templates
    all_templates[identifier] = (data["name"], data["description"])
KeyError: 'description'
@caufieldjh
Copy link
Member Author

In this case, all the repo templates have descriptions, but I had a local template without this value.
This is still a case to be caught in the CLI.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant