This commit is contained in:
Willy-JL
2024-02-16 11:27:05 +00:00
91 changed files with 3578 additions and 2228 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)