Skip to content

Commit

Permalink
Fix UTF-8 script code encoding issue (#1208)
Browse files Browse the repository at this point in the history
This fixes #1207
  • Loading branch information
ae-ae committed Feb 26, 2024
1 parent 592ab88 commit 1320927
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion clearml/backend_interface/task/repo/scriptinfo.py
Original file line number Diff line number Diff line change
Expand Up @@ -912,7 +912,7 @@ def _get_script_code(cls, script_path):

# noinspection PyBroadException
try:
with open(script_path, 'r') as f:
with open(script_path, 'r', encoding='utf-8') as f:
script_code = f.read()
return script_code
except Exception:
Expand Down

0 comments on commit 1320927

Please sign in to comment.