Skip to content

Commit 22048e1

Browse files
authored
Update log_utils.py
1 parent 709c914 commit 22048e1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

log_utils.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,6 @@ def store_data_in_hub(message: str, message_type: str):
164164
if scheduler:
165165
with scheduler.lock:
166166
file_to_upload = Path(str(JSON_DATASET_PATH).replace("NAME_TO_REPLACE", message_type))
167-
with file_to_upload.open("a") as f:
168-
json.dump(message, f)
167+
with file_to_upload.open("a", encoding="utf-8") as f:
168+
json.dump(message, f, ensure_ascii=False)
169169
f.write("\n")

0 commit comments

Comments
 (0)