equal
deleted
inserted
replaced
750 except SignalInterrupt: |
750 except SignalInterrupt: |
751 u.warn("killed!\n") |
751 u.warn("killed!\n") |
752 except KeyboardInterrupt: |
752 except KeyboardInterrupt: |
753 u.warn("interrupted!\n") |
753 u.warn("interrupted!\n") |
754 except IOError, inst: |
754 except IOError, inst: |
755 if inst.errno == errno.EPIPE: |
755 if hasattr(inst, "code"): |
|
756 u.warn("abort: %s\n" % inst) |
|
757 elif hasattr(inst, "reason"): |
|
758 u.warn("abort: error %d: %s\n" % (inst.reason[0], inst.reason[1])) |
|
759 elif hasattr(inst, "args") and inst[0] == errno.EPIPE: |
756 u.warn("broken pipe\n") |
760 u.warn("broken pipe\n") |
757 else: |
761 else: |
758 raise |
762 raise |
759 except TypeError, inst: |
763 except TypeError, inst: |
760 # was this an argument error? |
764 # was this an argument error? |