diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py index 9f6323eb565259cdc2ac6602c00a7201829a969c..4c9195b65b7004a0f75f19a099ee42bd51784bc6 100644 --- a/product/ERP5Form/FormulatorPatch.py +++ b/product/ERP5Form/FormulatorPatch.py @@ -178,7 +178,7 @@ def SelectionValidator_validate(self, field, key, REQUEST): for item in list(field.get_value('items', cell=getattr(REQUEST,'cell',None))) + [field.get_value('default', cell=getattr(REQUEST,'cell',None))]: try: item_text, item_value = item - except ValueError: + except (ValueError, TypeError): item_text = item item_value = item