aboutsummaryrefslogtreecommitdiff
path: root/gn3
diff options
context:
space:
mode:
Diffstat (limited to 'gn3')
-rw-r--r--gn3/errors.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gn3/errors.py b/gn3/errors.py
index ac9e070..ad08ae5 100644
--- a/gn3/errors.py
+++ b/gn3/errors.py
@@ -112,7 +112,7 @@ def handle_llm_error(exc: Exception) -> Response:
"query": exc.query if exc.query else "",
"error_type": type(exc).__name__,
"error": (
- exc.args if bool(exc.args) else "Fahamu gnqa error occurred"
+ exc.args[0] if bool(exc.args) else "Fahamu gnqa error occurred"
),
"trace": traceback.format_exc()
})