From a305d4917ff812bf1169798299a6086060a3c695 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?J=C3=A9rome=20Perrin?= <jerome@nexedi.com>
Date: Thu, 5 Aug 2010 09:10:41 +0000
Subject: [PATCH] explain what path is not found in install

git-svn-id: https://svn.erp5.org/repos/public/erp5/sandbox/amount_generator@37512 20353a03-c40f-0410-a6d1-a30d3c3de9de
---
 product/ERP5/Document/BusinessTemplate.py | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/product/ERP5/Document/BusinessTemplate.py b/product/ERP5/Document/BusinessTemplate.py
index 49ca761c72..b2d6bdb23d 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
 
 
-- 
2.30.9