httppeer: drop an except block that says it happens only on Python 2.3

This commit is contained in:
Augie Fackler 2016-11-21 17:47:11 -05:00
parent ed37e73e5c
commit 05fae84175

View File

@ -169,9 +169,6 @@ class httppeer(wireproto.wirepeer):
self.ui.debug('http error while sending %s command\n' % cmd)
self.ui.traceback()
raise IOError(None, inst)
except IndexError:
# this only happens with Python 2.3, later versions raise URLError
raise error.Abort(_('http error, possibly caused by proxy setting'))
# record the url we got redirected to
resp_url = resp.geturl()
if resp_url.endswith(qs):