Incorrect exception handling for xmlrpc client retry
This commit is contained in:
Kristján Valur Jónsson 2009-07-03 23:29:50 +00:00
parent f83648ef48
commit e5445da631

View file

@ -1256,7 +1256,7 @@ def request(self, host, handler, request_body, verbose=0):
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