summaryrefslogtreecommitdiff
path: root/src/home/config
diff options
context:
space:
mode:
Diffstat (limited to 'src/home/config')
-rw-r--r--src/home/config/config.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/src/home/config/config.py b/src/home/config/config.py
index dc00d2e..7344386 100644
--- a/src/home/config/config.py
+++ b/src/home/config/config.py
@@ -256,7 +256,10 @@ class Config:
no_config=False):
global app_config
- if not isinstance(name, str) and not isinstance(name, bool) and issubclass(name, AppConfigUnit) or name == AppConfigUnit:
+ if not no_config \
+ and not isinstance(name, str) \
+ and not isinstance(name, bool) \
+ and issubclass(name, AppConfigUnit) or name == AppConfigUnit:
self.app_name = name.NAME
self.app_config = name()
app_config = self.app_config