~abentley/bzrtools/bzrtools.dev

« back to all changes in this revision

Viewing changes to bzrtools.py

  • Committer: Aaron Bentley
  • Date: 2007-08-14 19:57:48 UTC
  • Revision ID: abentley@panoramicfeedback.com-20070814195748-ez1h8moqbu6hatjb
Clean up branches error handling when it can't connect

Show diffs side-by-side

added added

removed removed

Lines of Context:
28
28
import bzrlib.errors
29
29
from bzrlib.errors import (BzrCommandError, NotBranchError, NoSuchFile,
30
30
                           UnsupportedFormatError, TransportError,
31
 
                           NoWorkingTree, PermissionDenied)
 
31
                           NoWorkingTree, PermissionDenied, ConnectionError)
32
32
from bzrlib.bzrdir import BzrDir, BzrDirFormat
33
33
from bzrlib.transport import get_transport
34
34
 
342
342
    try:
343
343
        bzrdir = bzrdir_from_transport(t)
344
344
        yield bzrdir
 
345
    except (ConnectionError):
 
346
        raise
345
347
    except (NotBranchError, UnsupportedFormatError, TransportError,
346
348
            PermissionDenied):
347
349
        pass