aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-24 16:21:50 +0300
committerAlexander_Kabui2024-05-24 16:21:50 +0300
commit67c71507c84d474ac13681f16d994e7967321ddb (patch)
tree29d625ec8994593250c9d6442679163bd57c7ae4
parent6bbe9763a024558f2a4a942d71c799e4583448a2 (diff)
downloadgenenetwork3-67c71507c84d474ac13681f16d994e7967321ddb.tar.gz
Return first argument as error message.
-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()
})