equal
deleted
inserted
replaced
298 try: |
298 try: |
299 try: |
299 try: |
300 sv.serve() |
300 sv.serve() |
301 # handle exceptions that may be raised by command server. most of |
301 # handle exceptions that may be raised by command server. most of |
302 # known exceptions are caught by dispatch. |
302 # known exceptions are caught by dispatch. |
303 except util.Abort, inst: |
303 except util.Abort as inst: |
304 ui.warn(_('abort: %s\n') % inst) |
304 ui.warn(_('abort: %s\n') % inst) |
305 except IOError, inst: |
305 except IOError as inst: |
306 if inst.errno != errno.EPIPE: |
306 if inst.errno != errno.EPIPE: |
307 raise |
307 raise |
308 except KeyboardInterrupt: |
308 except KeyboardInterrupt: |
309 pass |
309 pass |
310 except: # re-raises |
310 except: # re-raises |