Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/azure-cli-core/azure/cli/core/extension/_index.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ def get_index(index_url=None, cli_ctx=None):
return response.json()
msg = ERR_TMPL_NON_200.format(response.status_code, index_url)
raise CLIError(msg)
except (requests.exceptions.ConnectionError, requests.exceptions.HTTPError, ValueError) as err:
except (requests.exceptions.RequestException, ValueError) as err:
if try_number == TRIES - 1:
# ValueError indicates that shortlink url is not redirecting properly to intended index url
msg = ERR_TMPL_BAD_JSON.format(str(err)) if isinstance(err, ValueError) else \
Expand Down