Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file modified requirements-dev.txt
Binary file not shown.
3 changes: 2 additions & 1 deletion units_generator/common/utils.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import requests
import json
import json5
import re
import os

Expand Down Expand Up @@ -50,7 +51,7 @@ def get_json_from_cdn(cdn_url):
response.raise_for_status()
# Skip utf-8 BOM char.
cleaned_text = response.text.lstrip("\ufeff")
json_data = json.loads(cleaned_text)
json_data = json5.loads(cleaned_text)
return json_data
except requests.exceptions.RequestException as e:
print(f"Failed to retrieve JSON from cdn: {e}")
Expand Down