Kaydet (Commit) 45686b47 authored tarafından Senthil Kumaran's avatar Senthil Kumaran

Correcting issue 12576 fix, which resulted in buildbot failures.

üst f25e3d52
...@@ -1135,13 +1135,10 @@ class AbstractHTTPHandler(BaseHandler): ...@@ -1135,13 +1135,10 @@ class AbstractHTTPHandler(BaseHandler):
try: try:
h.request(req.get_method(), req.selector, req.data, headers) h.request(req.get_method(), req.selector, req.data, headers)
except socket.error as err: # timeout error except socket.error as err: # timeout error
h.close()
raise URLError(err) raise URLError(err)
finally: else:
try: r = h.getresponse()
r = h.getresponse() # an HTTPResponse instance
except Exception as exp:
h.close()
raise exp
r.url = req.get_full_url() r.url = req.get_full_url()
# This line replaces the .msg attribute of the HTTPResponse # This line replaces the .msg attribute of the HTTPResponse
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment