diff options
-rw-r--r-- | scripts/lib/resulttool/resultutils.py | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/scripts/lib/resulttool/resultutils.py b/scripts/lib/resulttool/resultutils.py index 7cb85a6aa9..3850a93f22 100644 --- a/scripts/lib/resulttool/resultutils.py +++ b/scripts/lib/resulttool/resultutils.py | |||
@@ -127,10 +127,7 @@ def decode_log(logdata): | |||
127 | data = logdata.get("compressed") | 127 | data = logdata.get("compressed") |
128 | data = base64.b64decode(data.encode("utf-8")) | 128 | data = base64.b64decode(data.encode("utf-8")) |
129 | data = zlib.decompress(data) | 129 | data = zlib.decompress(data) |
130 | try: | 130 | return data.decode("utf-8", errors='ignore') |
131 | return data.decode("utf-8") | ||
132 | except UnicodeDecodeError: | ||
133 | return data | ||
134 | return None | 131 | return None |
135 | 132 | ||
136 | def ptestresult_get_log(results, section): | 133 | def ptestresult_get_log(results, section): |