Skip to content

Commit 9ebed28

Browse files
authored
Fix indentation in error handling of request method
1 parent a741ac1 commit 9ebed28

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

Lib/http/client.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1347,9 +1347,9 @@ def request(self, method, url, body=None, headers={}, *,
13471347
except OSError as e:
13481348
# If the transmission fails (e.g. timeout), close the connection
13491349
# to reset the state machine to _CS_IDLE
1350-
if getattr(e, "errno", None) != errno.EPIPE:
1351-
self.close()
1352-
raise
1350+
if getattr(e, "errno", None) != errno.EPIPE:
1351+
self.close()
1352+
raise
13531353

13541354
def _send_request(self, method, url, body, headers, encode_chunked):
13551355
# Honor explicitly requested Host: and Accept-Encoding: headers.

0 commit comments

Comments
 (0)