Commit a033f180 authored by Nicolas Delaby's avatar Nicolas Delaby

TypeError need to be supported too

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@19864 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 413e42fc
......@@ -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
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment