From ee70a5239cf2b0baa993de7b8a69171be4d3d38e Mon Sep 17 00:00:00 2001 From: Dominik Roth Date: Sun, 9 Jul 2023 16:16:24 +0200 Subject: [PATCH] fix: Exception when consuming dict --- slate/slate.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/slate/slate.py b/slate/slate.py index 1555dea..3549b36 100644 --- a/slate/slate.py +++ b/slate/slate.py @@ -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], {})