Skip to content

Commit afecf80

Browse files
Lint
1 parent cd7b502 commit afecf80

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/pip/_internal/network/utils.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,12 @@ def raise_for_status(resp):
4242
reason = resp.reason
4343

4444
if 400 <= resp.status_code < 500:
45-
http_error_msg = f'{resp.status_code} Client Error: {reason} for url: {resp.url}'
45+
http_error_msg = (
46+
f'{resp.status_code} Client Error: {reason} for url: {resp.url}')
4647

4748
elif 500 <= resp.status_code < 600:
48-
http_error_msg = f'{resp.status_code} Server Error: {reason} for url: {resp.url}'
49+
http_error_msg = (
50+
f'{resp.status_code} Server Error: {reason} for url: {resp.url}')
4951

5052
if http_error_msg:
5153
raise NetworkConnectionError(http_error_msg, response=resp)

0 commit comments

Comments
 (0)