Conceal wafcache decoding errors in Python3

This commit is contained in:
Thomas Nagy 2020-12-15 10:58:00 +01:00
parent 7b25a04c97
commit 5cddf4b06c
1 changed files with 1 additions and 1 deletions

View File

@ -488,7 +488,7 @@ class bucket_cache(object):
out, err = proc.communicate()
if proc.returncode:
raise OSError('Error copy %r to %r using: %r (exit %r):\n out:%s\n err:%s' % (
source, target, cmd, proc.returncode, out.decode(), err.decode()))
source, target, cmd, proc.returncode, out.decode(errors='replace'), err.decode(errors='replace')))
def copy_to_cache(self, sig, files_from, files_to):
try: