diff options
-rw-r--r-- | gn3/api/llm.py | 3 |
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 |