From 6d9991188ae16154785d783b44f3a4dd0c9798ac Mon Sep 17 00:00:00 2001 From: KeksNino Date: Fri, 31 Oct 2025 03:22:47 +0100 Subject: [PATCH] fixed config parser error handling --- core/utils/config/config.py | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/core/utils/config/config.py b/core/utils/config/config.py index c95e877..6021c32 100644 --- a/core/utils/config/config.py +++ b/core/utils/config/config.py @@ -37,17 +37,17 @@ def read_config(): config.read(config_file) - if state.debug is None: + if state.debug is not None: state.debug = config.getboolean("General", "debug") - if state.api_url is None: + if state.api_url is not None: state.api_url = config.get("General", "api_url") - if state.aria2_threads is None: + if state.aria2_threads is not None: state.aria2_threads = config.getint("General", "aria2_threads") - if state.download_path is None: + if state.download_path is not None: state.download_path = config.get("General", "download_path") - if state.speed_limit is None: + if state.speed_limit is not None: state.speed_limit = config.getint("General", "speed_limit") - if state.ignore_updates is None: + if state.ignore_updates is not None: state.ignore_updates = config.getboolean("General", "ignore_updates") - if state.image_path is None: + if state.image_path is not None: state.image_path = config.get("General", "image_path")