/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/groupcompress.py

  • Committer: Jonathan Riddell
  • Date: 2011-05-31 09:18:24 UTC
  • mto: This revision was merged to the branch mainline in revision 5954.
  • Revision ID: jriddell@canonical.com-20110531091824-h5qbxn2nefqtffr7
throw the error

Show diffs side-by-side

added added

removed removed

Lines of Context:
466
466
                # Grab and cache the raw bytes for this entry
467
467
                # and break the ref-cycle with _manager since we don't need it
468
468
                # anymore
469
 
                self._manager._prepare_for_extract()
 
469
                try:
 
470
                    self._manager._prepare_for_extract()
 
471
                except zlib.error as value:
 
472
                    from bzrlib.trace import mutter
 
473
                    mutter("value: " + str(value) + str(type(value)))
 
474
                    raise errors.DecompressCorruption()
470
475
                block = self._manager._block
471
476
                self._bytes = block.extract(self.key, self._start, self._end)
472
477
                # There are code paths that first extract as fulltext, and then