~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/bundle/__init__.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2006-07-11 00:28:34 UTC
  • mfrom: (1793.3.13 bundle-fixes)
  • Revision ID: pqm@pqm.ubuntu.com-20060711002834-437bd17f804929ad
(jam) Updates to bundles, handle binary files, non integer timezone offsets, and sftp pull

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