aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--sos/archive.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/sos/archive.py b/sos/archive.py
index 10fa7609..0336aabe 100644
--- a/sos/archive.py
+++ b/sos/archive.py
@@ -180,6 +180,8 @@ class FileCacheArchive(Archive):
dest = self.dest_path(dest)
self._check_path(dest)
f = codecs.open(dest, 'w', encoding='utf-8')
+ if isinstance(content, bytes):
+ content = content.decode('utf8', 'ignore')
f.write(content)
if os.path.exists(src):
try: