We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent cd7b502 commit afecf80Copy full SHA for afecf80
src/pip/_internal/network/utils.py
@@ -42,10 +42,12 @@ def raise_for_status(resp):
42
reason = resp.reason
43
44
if 400 <= resp.status_code < 500:
45
- http_error_msg = f'{resp.status_code} Client Error: {reason} for url: {resp.url}'
+ http_error_msg = (
46
+ f'{resp.status_code} Client Error: {reason} for url: {resp.url}')
47
48
elif 500 <= resp.status_code < 600:
- http_error_msg = f'{resp.status_code} Server Error: {reason} for url: {resp.url}'
49
50
+ f'{resp.status_code} Server Error: {reason} for url: {resp.url}')
51
52
if http_error_msg:
53
raise NetworkConnectionError(http_error_msg, response=resp)
0 commit comments