mirror of
https://github.com/modelscope/modelscope.git
synced 2026-05-18 05:05:00 +02:00
fix error log
This commit is contained in:
@@ -120,9 +120,9 @@ def handle_http_response(response: requests.Response,
|
|||||||
http_error_msg = 'The request model: %s does not exist!' % (model_id)
|
http_error_msg = 'The request model: %s does not exist!' % (model_id)
|
||||||
elif 403 == response.status_code:
|
elif 403 == response.status_code:
|
||||||
if cookies is None:
|
if cookies is None:
|
||||||
http_error_msg = f'Authentication token does not exist, \
|
http_error_msg = (
|
||||||
failed to access model {model_id} which may not exist \
|
f'Authentication token does not exist, failed to access model {model_id} '
|
||||||
or may be private. Please login first.'
|
'which may not exist or may be private. Please login first.')
|
||||||
|
|
||||||
else:
|
else:
|
||||||
http_error_msg = f'The authentication token is invalid, failed to access model {model_id}.'
|
http_error_msg = f'The authentication token is invalid, failed to access model {model_id}.'
|
||||||
|
|||||||
Reference in New Issue
Block a user