From 7fc02734b80cb892728fe386f038e7543bde602c Mon Sep 17 00:00:00 2001 From: "Salvador E. Tropea" Date: Tue, 10 Jan 2023 15:11:05 -0300 Subject: [PATCH] [Tests][Fixed] Missing fix in optionable --- kibot/optionable.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/kibot/optionable.py b/kibot/optionable.py index 7826d250..ad5fc661 100644 --- a/kibot/optionable.py +++ b/kibot/optionable.py @@ -130,6 +130,8 @@ class Optionable(object): def _perform_config_mapping(self): """ Map the options to class attributes """ attrs = self.get_attrs_for() + if not isinstance(self._tree, dict): + raise KiPlotConfigurationError('Found {} instead of dict'.format(type(self._tree))) for k, v in self._tree.items(): # Map known attributes and avoid mapping private ones if (k[0] == '_') or (k not in attrs):