From 6ceaa89dad549657354d85e1d1a5503fa91d6ec5 Mon Sep 17 00:00:00 2001 From: mike Date: Sun, 9 Jun 2024 09:43:21 -0700 Subject: [PATCH] more config guidance --- domain/config/ConfigFile.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/domain/config/ConfigFile.py b/domain/config/ConfigFile.py index 180c614..b1e023d 100644 --- a/domain/config/ConfigFile.py +++ b/domain/config/ConfigFile.py @@ -93,9 +93,13 @@ class ConfigFile: self.info(f"Loaded config from path: {self.__path}") def _consume(self): - - try: + try: + + assert isinstance(self.__data, dict), ( + f"Config file should be a dict!" + ) + if "options" in self.__data.keys(): self.info(f"Found options setting")