From ebff41e016f8c687f6cddf489a19da1f198b1c8e Mon Sep 17 00:00:00 2001 From: Lukas Kucharczyk Date: Tue, 30 Jul 2024 13:32:40 +0200 Subject: [PATCH] Check for type in a different way --- deemix/settings.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deemix/settings.py b/deemix/settings.py index 49b6189..778c866 100644 --- a/deemix/settings.py +++ b/deemix/settings.py @@ -135,7 +135,7 @@ def load(configFolder=None): def check(settings): changes = 0 for i_set in DEFAULTS: - if not i_set in settings or not isinstance(settings[i_set], type(DEFAULTS[i_set])): + if not i_set in settings or not type(settings[i_set] is type(DEFAULTS[i_set])): settings[i_set] = DEFAULTS[i_set] changes += 1 for i_set in DEFAULTS['tags']: