Commit 149f7d36 authored by Romain Courteaud's avatar Romain Courteaud

BusinessTemplate: XXX workaround one bug

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