mirror of
https://github.com/trustgraph-ai/trustgraph.git
synced 2026-07-24 12:41: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():
|
for k, v in self.prompts.items():
|
||||||
try:
|
try:
|
||||||
self.templates[k] = ibis.Template(v.template)
|
self.templates[k] = ibis.Template(v.template)
|
||||||
except:
|
except Exception as e:
|
||||||
raise RuntimeError(f"Error in template: {k}")
|
raise RuntimeError(f"Error in template: {k}: {e}")
|
||||||
|
|
||||||
if v.terms is None:
|
if v.terms is None:
|
||||||
v.terms = {}
|
v.terms = {}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue