mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-03-25 07:05:43 -03:00
Fix misleading error message for invalid civitai api key or early access deny
This commit is contained in:
@@ -512,7 +512,7 @@ class ApiRoutes:
|
|||||||
logger.warning(f"Early access download failed: {error_message}")
|
logger.warning(f"Early access download failed: {error_message}")
|
||||||
return web.Response(
|
return web.Response(
|
||||||
status=401, # Use 401 status code to match Civitai's 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)
|
return web.Response(status=500, text=error_message)
|
||||||
|
|||||||
Reference in New Issue
Block a user