aboutsummaryrefslogtreecommitdiff
path: root/gn3/api
diff options
context:
space:
mode:
authorAlexander_Kabui2024-05-01 01:53:34 +0300
committerAlexander_Kabui2024-05-01 01:53:34 +0300
commit27c42bf7b7eb502029b08aa8550eb5db0a0f8bc2 (patch)
tree77622af18bd0d955e48405aad9070ff83a63add7 /gn3/api
parent5650db6466150eea1382decc4640a394474dfc6f (diff)
downloadgenenetwork3-27c42bf7b7eb502029b08aa8550eb5db0a0f8bc2.tar.gz
Add more error info for Database Open error raised
Diffstat (limited to 'gn3/api')
-rw-r--r--gn3/api/llm.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/gn3/api/llm.py b/gn3/api/llm.py
index 7a0eff2..b1eead9 100644
--- a/gn3/api/llm.py
+++ b/gn3/api/llm.py
@@ -89,7 +89,8 @@ def rating(task_id):
"status": 0
}, 200
except sqlite3.Error as error:
- raise error
+ return jsonify({"error": str(error), "user": token.user.user_id,
+ "llm_db_path": LLM_DB_PATH}), 500
except Exception as error:
raise error