diff --git a/qBitrr/config.py b/qBitrr/config.py index 67cc70c4..66100a02 100644 --- a/qBitrr/config.py +++ b/qBitrr/config.py @@ -128,7 +128,7 @@ def process_flags() -> argparse.Namespace | bool: FREE_SPACE = ENVIRO_CONFIG.settings.free_space or CONFIG.get("Settings.FreeSpace", fallback="-1") FREE_SPACE_FOLDER = ( (ENVIRO_CONFIG.settings.free_space_folder or CONFIG.get_or_raise("Settings.FreeSpaceFolder")) - if int(FREE_SPACE[: len(FREE_SPACE) - 1]) > 0 + if FREE_SPACE != "-1" else None ) NO_INTERNET_SLEEP_TIMER = ENVIRO_CONFIG.settings.no_internet_sleep_timer or CONFIG.get(