##// END OF EJS Templates
Catch python2.3's IndexError with bogus http proxy settings. (issue203)
Thomas Arendsen Hein -
r3399:5dbb3a99 default
parent child Browse files
Show More
@@ -230,6 +230,9 b' class httprepository(remoterepository):'
230 self.ui.debug(_('http error while sending %s command\n') % cmd)
230 self.ui.debug(_('http error while sending %s command\n') % cmd)
231 self.ui.print_exc()
231 self.ui.print_exc()
232 raise IOError(None, inst)
232 raise IOError(None, inst)
233 except IndexError:
234 # this only happens with Python 2.3, later versions raise URLError
235 raise util.Abort(_('http error, possibly caused by proxy setting'))
233 try:
236 try:
234 proto = resp.getheader('content-type')
237 proto = resp.getheader('content-type')
235 except AttributeError:
238 except AttributeError:
General Comments 0
You need to be logged in to leave comments. Login now