From 5cddf4b06c93722e0015125cba0e9c00cdd44c75 Mon Sep 17 00:00:00 2001 From: Thomas Nagy Date: Tue, 15 Dec 2020 10:58:00 +0100 Subject: [PATCH] Conceal wafcache decoding errors in Python3 --- waflib/extras/wafcache.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/waflib/extras/wafcache.py b/waflib/extras/wafcache.py index 0bbf3619..5303b9f1 100644 --- a/waflib/extras/wafcache.py +++ b/waflib/extras/wafcache.py @@ -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: