File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
benchmark/dbally_benchmark Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change 19
19
from dbally .audit .event_handlers .cli_event_handler import CLIEventHandler
20
20
from dbally .llms .litellm import LiteLLM
21
21
from dbally .context import BaseCallerContext
22
+ from dbally .iql import IQLError
22
23
23
24
24
25
SQLITE_DB_FILE_REL_PATH = "../../examples/recruiting/data/candidates.db"
@@ -154,6 +155,9 @@ async def generate_iql_from_question(
154
155
contexts = contexts ,
155
156
dry_run = True
156
157
)
158
+ except IQLError as e :
159
+ exc_pretty = traceback .format_exception_only (e .__class__ , e )[0 ]
160
+ return question , model_name , f"FAILED: { exc_pretty } ({ e .source } )"
157
161
except Exception as e :
158
162
exc_pretty = traceback .format_exception_only (e .__class__ , e )[0 ]
159
163
return question , model_name , f"FAILED: { exc_pretty } "
You can’t perform that action at this time.
0 commit comments