diff --git a/tiramisu/config.py b/tiramisu/config.py index 3ad66be..c47932a 100644 --- a/tiramisu/config.py +++ b/tiramisu/config.py @@ -378,6 +378,8 @@ class Config(object): if not isinstance(child, OptionDescription): try: yield child._name, getattr(self, child._name) + except GeneratorExit: + raise StopIteration except: pass # option with properties @@ -387,6 +389,8 @@ class Config(object): for child in self._cfgimpl_descr._children: try: yield child._name, getattr(self, child._name) + except GeneratorExit: + raise StopIteration except: pass # option with properties @@ -411,6 +415,8 @@ class Config(object): yield child._name, getattr(self, child._name) else: yield child._name, getattr(self, child._name) + except GeneratorExit: + raise StopIteration except: pass # ______________________________________________________________________