fix error log

This commit is contained in:
Yunnglin
2025-11-18 17:37:50 +08:00
parent bf8f61d402
commit a88393273a

View File

@@ -120,9 +120,9 @@ def handle_http_response(response: requests.Response,
http_error_msg = 'The request model: %s does not exist!' % (model_id)
elif 403 == response.status_code:
if cookies is None:
http_error_msg = f'Authentication token does not exist, \
failed to access model {model_id} which may not exist \
or may be private. Please login first.'
http_error_msg = (
f'Authentication token does not exist, failed to access model {model_id} '
'which may not exist or may be private. Please login first.')
else:
http_error_msg = f'The authentication token is invalid, failed to access model {model_id}.'