Check for type in a different way
This commit is contained in:
parent
c357cfb6a5
commit
ebff41e016
|
@ -135,7 +135,7 @@ def load(configFolder=None):
|
||||||
def check(settings):
|
def check(settings):
|
||||||
changes = 0
|
changes = 0
|
||||||
for i_set in DEFAULTS:
|
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]
|
settings[i_set] = DEFAULTS[i_set]
|
||||||
changes += 1
|
changes += 1
|
||||||
for i_set in DEFAULTS['tags']:
|
for i_set in DEFAULTS['tags']:
|
||||||
|
|
Loading…
Reference in New Issue