comparison mercurial/httprepo.py @ 8206:cce63ef1045b

ui: print_exc() -> traceback()
author Matt Mackall <mpm@selenic.com>
date Sun, 26 Apr 2009 16:50:44 -0500
parents bbc24c0753a0
children 46293a0c7e9f
comparison
equal deleted inserted replaced
8205:00736cd2702a 8206:cce63ef1045b
80 if inst.code == 401: 80 if inst.code == 401:
81 raise util.Abort(_('authorization failed')) 81 raise util.Abort(_('authorization failed'))
82 raise 82 raise
83 except httplib.HTTPException, inst: 83 except httplib.HTTPException, inst:
84 self.ui.debug(_('http error while sending %s command\n') % cmd) 84 self.ui.debug(_('http error while sending %s command\n') % cmd)
85 self.ui.print_exc() 85 self.ui.traceback()
86 raise IOError(None, inst) 86 raise IOError(None, inst)
87 except IndexError: 87 except IndexError:
88 # this only happens with Python 2.3, later versions raise URLError 88 # this only happens with Python 2.3, later versions raise URLError
89 raise util.Abort(_('http error, possibly caused by proxy setting')) 89 raise util.Abort(_('http error, possibly caused by proxy setting'))
90 # record the url we got redirected to 90 # record the url we got redirected to