From 03baedd4ddbad311a33f44356606a6aa554ae7c5 Mon Sep 17 00:00:00 2001 From: Daniel Dehennin Date: Thu, 31 Jan 2013 16:57:15 +0100 Subject: [PATCH] Fix appending to a non-grouped multi When the multi is not grouped, just set the value and do not try to update len of inexistant slaves. The code path try to update the len of all other variables under the OptionDescription of the multi. * tiramisu/option.py (Multi.append): return after setting the value. Fixes: #4811 @10m --- tiramisu/option.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/tiramisu/option.py b/tiramisu/option.py index 540fd2e..79ef025 100644 --- a/tiramisu/option.py +++ b/tiramisu/option.py @@ -79,7 +79,10 @@ class Multi(list): raise IndexError("in a group with a master, you mustn't add " "a value in a slave's Multi value") except TypeError: + # Not a master/slaves self._setvalue(value, who=settings.get_owner()) + return + multis = [] for opt in self.config._cfgimpl_descr._children: if isinstance(opt, OptionDescription):