~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/commands.py

  • Committer: Ian Clatworthy
  • Date: 2007-04-10 14:23:43 UTC
  • mto: (2418.4.1 jam-integration)
  • mto: This revision was merged to the branch mainline in revision 2448.
  • Revision ID: ian.clatworthy@internode.on.net-20070410142343-6bfz9k67b8tvrz6x
completed blackbox tests

Show diffs side-by-side

added added

removed removed

Lines of Context:
635
635
 
636
636
def run_bzr_catch_errors(argv):
637
637
    try:
638
 
        return run_bzr(argv)
639
 
        # do this here inside the exception wrappers to catch EPIPE
640
 
        sys.stdout.flush()
 
638
        try:
 
639
            return run_bzr(argv)
 
640
        finally:
 
641
            # do this here inside the exception wrappers to catch EPIPE
 
642
            sys.stdout.flush()
641
643
    except (KeyboardInterrupt, Exception), e:
642
644
        # used to handle AssertionError and KeyboardInterrupt
643
645
        # specially here, but hopefully they're handled ok by the logger now