diff --git a/fieldpoc/fieldpoc.py b/fieldpoc/fieldpoc.py index 02e3381..44ad259 100644 --- a/fieldpoc/fieldpoc.py +++ b/fieldpoc/fieldpoc.py @@ -91,4 +91,9 @@ class FieldPOC: self.config = config.Config(json.loads(self.config_file_path.read_text())) def _load_extensions(self): - self.extensions = extensions.Extensions(json.loads(pathlib.Path(self.config.extensions.file).read_text())) + try: + new_extensions = extensions.Extensions(json.loads(pathlib.Path(self.config.extensions.file).read_text())) + except: + logger.exception("loading extensions failed") + else: + self.extensions = new_extensions