Skip to content
Snippets Groups Projects
Commit 8d3c1c59 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

decode string before splitting it.

parent 3b4875e3
No related branches found
No related tags found
No related merge requests found
......@@ -722,8 +722,7 @@ class Logger:
# ..., 'FEAT', feature1, feature2, ...).join(' '))
# NOTE: if there's a need to do more gzip, put that to a function
try:
data = GzipFile(fileobj=StringIO(str(data))).read().split('\0')
data = data.decode('utf-8')
data = GzipFile(fileobj=StringIO(str(data))).read().decode('utf-8').split('\0')
except IOError:
# This data is corrupted. It probably contains non-ascii chars
to_be_removed.append((hash_method, hash))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment