##// END OF EJS Templates
archival: force a `CompressionError` to bytes before passing to `error.Abort`...
Matt Harbison -
r48825:406a7e62 default
parent child Browse files
Show More
@@ -29,6 +29,8 from . import (
29 29 vfs as vfsmod,
30 30 )
31 31
32 from .utils import stringutil
33
32 34 stringio = util.stringio
33 35
34 36 # from unzip source code:
@@ -196,7 +198,7 class tarit(object):
196 198 name, pycompat.sysstr(mode + kind), fileobj
197 199 )
198 200 except tarfile.CompressionError as e:
199 raise error.Abort(pycompat.bytestr(e))
201 raise error.Abort(stringutil.forcebytestr(e))
200 202
201 203 if isinstance(dest, bytes):
202 204 self.z = taropen(b'w:', name=dest)
General Comments 0
You need to be logged in to leave comments. Login now