mercurial/commandserver.py
changeset 25660 328739ea70c3
parent 23324 69f86b937035
child 25832 5857be01962e
equal deleted inserted replaced
25659:d60678a567a9 25660:328739ea70c3
   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