535
535
except BzrCommandError, e:
536
536
# command line syntax error, etc
540
540
bzrlib.trace.log_exception()
542
542
except AssertionError, e:
543
543
bzrlib.trace.log_exception('assertion failed: ' + str(e))
545
545
except KeyboardInterrupt, e:
546
546
bzrlib.trace.log_exception('interrupted')
550
550
if (isinstance(e, IOError)
552
552
and e.errno == errno.EPIPE):
553
553
bzrlib.trace.note('broken pipe')
558
558
bzrlib.trace.log_exception()
561
561
if __name__ == '__main__':