fixing bugs

This commit is contained in:
Dominik Moritz Roth 2023-07-12 11:46:52 +02:00
parent 72a7b9df25
commit cb8a454639

View File

@ -118,7 +118,12 @@ class Slate():
if len(keys_arr) == 1:
k = keys_arr[0]
if default != None:
val = conf.get(k, default)
if isinstance(conf, collections.abc.Mapping):
val = conf.get(k, default)
else:
if default:
return default
raise Exception('')
else:
val = conf[k]
if k in conf: