fix: Exception when consuming dict

This commit is contained in:
Dominik Moritz Roth 2023-07-09 16:16:24 +02:00
parent ebe4e04861
commit ee70a5239c

View File

@ -117,8 +117,9 @@ class Slate():
if k in conf:
del conf[k]
while val.find('{') != -1:
val = self.expand_vars(val, config=self._config, **kwargs)
if type(val, str):
while val.find('{') != -1:
val = self.expand_vars(val, config=self._config, **kwargs)
return val
child = conf.get(keys_arr[0], {})