Mercurial > hg > mercurial-crew-with-dirclash
changeset 3399:5dbb3a991bbf
Catch python2.3's IndexError with bogus http proxy settings. (issue203)
author | Thomas Arendsen Hein <thomas@intevation.de> |
---|---|
date | Sun, 15 Oct 2006 21:09:56 +0200 |
parents | 0f308690bda8 |
children | d8eba1c3ce9b d2b55e3c4e25 |
files | mercurial/httprepo.py |
diffstat | 1 files changed, 3 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/mercurial/httprepo.py +++ b/mercurial/httprepo.py @@ -230,6 +230,9 @@ class httprepository(remoterepository): self.ui.debug(_('http error while sending %s command\n') % cmd) self.ui.print_exc() raise IOError(None, inst) + except IndexError: + # this only happens with Python 2.3, later versions raise URLError + raise util.Abort(_('http error, possibly caused by proxy setting')) try: proto = resp.getheader('content-type') except AttributeError: