From a033f1803b634f7492778adc4428580dd69af417 Mon Sep 17 00:00:00 2001 From: Nicolas Delaby <nicolas@nexedi.com> Date: Thu, 13 Mar 2008 17:17:54 +0000 Subject: [PATCH] TypeError need to be supported too git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19864 20353a03-c40f-0410-a6d1-a30d3c3de9de --- product/ERP5Form/FormulatorPatch.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/product/ERP5Form/FormulatorPatch.py b/product/ERP5Form/FormulatorPatch.py index 9f6323eb56..4c9195b65b 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 -- 2.30.9