/brz/remove-bazaar

To get this branch, use:
bzr branch http://gegoxaren.bato24.eu/bzr/brz/remove-bazaar

« back to all changes in this revision

Viewing changes to bzrlib/bundle/__init__.py

  • Committer: Jan Balster
  • Date: 2006-08-15 12:39:42 UTC
  • mfrom: (1923 +trunk)
  • mto: This revision was merged to the branch mainline in revision 1928.
  • Revision ID: jan@merlinux.de-20060815123942-22c388c6e9a8ac91
merge bzr.dev 1923

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