1
mirror of https://github.com/DarkFlippers/unleashed-firmware.git synced 2025-12-12 04:34:43 +04:00

Merge branch 'ofw_dev' into blerefactr

This commit is contained in:
MX
2024-02-19 00:46:40 +03:00
89 changed files with 3456 additions and 1965 deletions

View File

@@ -30,8 +30,11 @@ class HardwareTargetLoader:
if not target_json_file.exists():
raise Exception(f"Target file {target_json_file} does not exist")
with open(target_json_file.get_abspath(), "r") as f:
vals = json.load(f)
return vals
try:
vals = json.load(f)
return vals
except json.JSONDecodeError as e:
raise Exception(f"Failed to parse target file {target_json_file}: {e}")
def _processTargetDefinitions(self, target_id):
target_dir = self._getTargetDir(target_id)