From c193c75674ebfd7a42c452ffbd76476d6e6493d6 Mon Sep 17 00:00:00 2001 From: Will Miao <13051207myq@gmail.com> Date: Thu, 15 May 2025 13:46:46 +0800 Subject: [PATCH] Fix misleading error message for invalid civitai api key or early access deny --- py/routes/api_routes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/py/routes/api_routes.py b/py/routes/api_routes.py index c94394a0..b2eece51 100644 --- a/py/routes/api_routes.py +++ b/py/routes/api_routes.py @@ -512,7 +512,7 @@ class ApiRoutes: logger.warning(f"Early access download failed: {error_message}") return web.Response( status=401, # Use 401 status code to match Civitai's response - text=f"Early Access Restriction: {error_message}" + text=error_message ) return web.Response(status=500, text=error_message)