Skip to content

Commit 6dc1e43

Browse files
authored
Dependency finder: Add protection against non-Unicode characters in JSON (#6806)
1 parent 692e29a commit 6dc1e43

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Scripts/find_dependencies.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ def load_workflows_from_json():
7272
# Get the workflow name from the JSON file name
7373
workflow = os.path.basename(file_json).split(".")[0]
7474
try:
75-
with open(file_json, "r") as j:
75+
with open(file_json, "r", encoding="utf8", errors="ignore") as j:
7676
specs_wf = json.load(j)
7777
db_wf[workflow] = specs_wf["workflow"]
7878
except FileNotFoundError:

0 commit comments

Comments
 (0)