mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-22 19:51:02 +02:00
Prompt manager reports template parse errors in the log
This commit is contained in:
parent
b4b39f1e2a
commit
8869dd1eed
1 changed files with 2 additions and 2 deletions
|
|
@ -71,8 +71,8 @@ class PromptManager:
|
|||
for k, v in self.prompts.items():
|
||||
try:
|
||||
self.templates[k] = ibis.Template(v.template)
|
||||
except:
|
||||
raise RuntimeError(f"Error in template: {k}")
|
||||
except Exception as e:
|
||||
raise RuntimeError(f"Error in template: {k}: {e}")
|
||||
|
||||
if v.terms is None:
|
||||
v.terms = {}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue