fixing bugs
This commit is contained in:
parent
72a7b9df25
commit
cb8a454639
@ -118,7 +118,12 @@ class Slate():
|
|||||||
if len(keys_arr) == 1:
|
if len(keys_arr) == 1:
|
||||||
k = keys_arr[0]
|
k = keys_arr[0]
|
||||||
if default != None:
|
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:
|
else:
|
||||||
val = conf[k]
|
val = conf[k]
|
||||||
if k in conf:
|
if k in conf:
|
||||||
|
Loading…
Reference in New Issue
Block a user