From 27ba326711d2b686209d360bdde5706f1bf1a6be Mon Sep 17 00:00:00 2001 From: Fenhl Date: Sun, 29 Jan 2023 03:58:27 +0000 Subject: [PATCH] Better error message for conflicting settings in plando --- SettingsList.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/SettingsList.py b/SettingsList.py index 4463f9d1a..bb9982109 100644 --- a/SettingsList.py +++ b/SettingsList.py @@ -6310,9 +6310,8 @@ def validate_settings(settings_dict): def validate_disabled_setting(settings_dict, setting, choice, other_setting): if other_setting in settings_dict: - disabled_default = get_setting_info(other_setting).disabled_default - if settings_dict[other_setting] != disabled_default: - raise ValueError(f'{other_setting!r} must be set to {disabled_default!r} since {setting!r} is set to {choice!r}') + if settings_dict[other_setting] != get_setting_info(other_setting).disabled_default: + raise ValueError(f'The {other_setting!r} setting cannot be used since {setting!r} is set to {choice!r}') class UnmappedSettingError(Exception): pass