Commit c4bae2ec authored by Jean-Paul Smets's avatar Jean-Paul Smets

Additional raise message to inform the user of the missing object.

git-svn-id: https://svn.erp5.org/repos/public/erp5/trunk@12080 20353a03-c40f-0410-a6d1-a30d3c3de9de
parent 6ddfd43a
......@@ -499,7 +499,10 @@ class ObjectTemplateItem(BaseTemplateItem):
p = context.getPortalObject()
for relative_url in self._archive.keys():
obj = p.unrestrictedTraverse(relative_url)
obj = obj._getCopy(context)
try:
obj = obj._getCopy(context)
except AttributeError:
raise AttributeError, "Could not find object '%s' during business template processing." % relative_url
obj = self.removeProperties(obj)
id_list = obj.objectIds()
if hasattr(aq_base(obj), 'groups'):
......
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