diff --git a/ovos_workshop/resource_files.py b/ovos_workshop/resource_files.py index be44f38..80c2def 100644 --- a/ovos_workshop/resource_files.py +++ b/ovos_workshop/resource_files.py @@ -409,8 +409,11 @@ def load(self): class JsonFile(ResourceFile): def load(self) -> Dict[str, Any]: if self.file_path is not None: - with open(self.file_path) as f: - return json.load(f) + try: + with open(self.file_path) as f: + return json.load(f) + except Exception as e: + LOG.error(f"Failed to load {self.file_path}: {e}") return {}