type shall not be a list
authorgwen <gremond@cadoles.com>
Tue, 26 Feb 2013 16:04:41 +0000 (17:04 +0100)
committergwen <gremond@cadoles.com>
Tue, 26 Feb 2013 16:04:41 +0000 (17:04 +0100)
tiramisu/value.py

index 282c996..2ac7add 100644 (file)
@@ -69,6 +69,8 @@ class Values(object):
     def set_previous_value(self, opt):
         if opt in self.values:
             old_value = self.values[opt]
+        elif opt.is_multi():
+            old_value = []
         else:
             old_value = None
         if type(old_value) == Multi: