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 f0ae8ec1c5..5fec01f6f3 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): |
