mirror of
https://github.com/python/cpython.git
synced 2025-11-24 20:30:18 +00:00
Incorrect exception handling for xmlrpc client retry
This commit is contained in:
parent
f83648ef48
commit
e5445da631
1 changed files with 1 additions and 1 deletions
|
|
@ -1256,7 +1256,7 @@ class Transport:
|
|||
except socket.error, e:
|
||||
if i or e.errno not in (errno.ECONNRESET, errno.ECONNABORTED):
|
||||
raise
|
||||
except http.client.BadStatusLine: #close after we sent request
|
||||
except httplib.BadStatusLine: #close after we sent request
|
||||
if i:
|
||||
raise
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue