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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user