~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/__init__.py

  • Committer: Aaron Bentley
  • Date: 2006-07-11 13:17:16 UTC
  • mfrom: (1850 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1858.
  • Revision ID: abentley@panoramicfeedback.com-20060711131716-5ff677f3099e48b6
Merge bzr.dev

Show diffs side-by-side

added added

removed removed

Lines of Context:
41
41
        return read_bundle(f)
42
42
    except (errors.TransportError, errors.PathError), e:
43
43
        raise errors.NotABundle(str(e))
 
44
    except (IOError,), e:
 
45
        # jam 20060707
 
46
        # Abstraction leakage, SFTPTransport.get('directory')
 
47
        # doesn't always fail at get() time. Sometimes it fails
 
48
        # during read. And that raises a generic IOError with
 
49
        # just the string 'Failure'
 
50
        # StubSFTPServer does fail during get() (because of prefetch) 
 
51
        # so it has an opportunity to translate the error.
 
52
        raise errors.NotABundle(str(e))
44
53