Skip to content

Commit

Permalink
decode bytes
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolas-f authored Jan 10, 2024
1 parent dba9ef3 commit 805ccc9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def fetch_data(args):
sys.getdefaultencoding())
yield json_dict
except json.decoder.JSONDecodeError:
print("Cannot parse json: "+line)
print("Cannot parse json: "+line.decode("utf-8"))
except zlib.error as e:
print("Issue with compressed file named "+file_path, e)
if not args.keep_file:
Expand Down

0 comments on commit 805ccc9

Please sign in to comment.