Commit d411c357 authored by Yoshinori Okuji's avatar Yoshinori Okuji

Catch IndexError.


git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@4153 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent baae4349
......@@ -1393,7 +1393,7 @@ def createDefaultAccessors(property_holder, id, prop = None,
default = prop.get('default')
try:
default = default[0]
except TypeError:
except (TypeError, IndexError):
default = None
accessor_name = 'get' + UpperCase(id)
base_accessor = List.Getter(accessor_name, id, prop['type'], default = default,
......
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