Commit feb28ca5 authored by Romain Courteaud's avatar Romain Courteaud

BusinessTemplate: XXX workaround one bug

Not reproduced...
parent 58f69922
......@@ -1494,7 +1494,7 @@ class ObjectTemplateItem(BaseTemplateItem):
subobject_data.seek(0)
subobject = connection.importFile(subobject_data)
obj._setObject(subobject_id, subobject)
except AttributeError:
except (AttributeError, KeyError):
# XXX this may happen when an object which can contain
# sub-objects (e.g. ERP5 Form) has been replaced with
# an object which cannot (e.g. External Method).
......
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