Commit 629d34ed authored by Roque's avatar Roque

erp5_officejs_connector: better exception handling on raw fields script

parent b4908ef0
......@@ -42,7 +42,7 @@ def getFieldRawProperties(field, meta_type=None, key=None, key_prefix=None):
try:
result["values"]["url"] = result["values"]["gadget_url"]
result["values"]["renderjs_extra"] = result["values"]["renderjs_extra"][0][0]
except KeyError:
except (ValueError, KeyError, IndexError):
log("error while patching form gadget list definition")
for key in field.tales.keys():
if field.tales[key]:
......
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