From 53a541c487ef9969a166223a6f04d45d6f41d12c Mon Sep 17 00:00:00 2001 From: Timur Demin Date: Sun, 19 Jan 2020 16:00:16 +0500 Subject: [PATCH] Fix config parser code * This fixes an issue where the config file contents were ignored * Issue introduced with fd22103df8 --- project_amber/config.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/project_amber/config.py b/project_amber/config.py index a00f349..3f69484 100644 --- a/project_amber/config.py +++ b/project_amber/config.py @@ -34,8 +34,8 @@ class Config: print(ioerr.strerror) sys.exit(1) -for entry in vars(config): - if entry in loadedConfig: +for entry in dir(config): + if entry in loadedConfig and not entry.startswith("__"): setattr(config, entry, loadedConfig[entry])