diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py index 49ca761c724d0395c1db8c5cbb8649b82e6e285e..b2d6bdb23d203acf213e989fe1369eef0de491f8 100644 --- a/product/ERP5/Document/BusinessTemplate.py +++ b/product/ERP5/Document/BusinessTemplate.py @@ -681,13 +681,13 @@ class BaseTemplateItem(Implicit, Persistent): # When relative_url is empty, returns the context return context + __traceback_info__ = (container, key) if value is None: LOG('BusinessTemplate', WARNING, 'Could not access object %s' % path) if default is not _MARKER: return default - else: - raise KeyError + raise KeyError, key return value