[IMP] QWeb: set template information on template not found exception

bzr revid: fme@openerp.com-20131217135618-0l1emdsz6brviosm
This commit is contained in:
Fabien Meghazi
2013-12-17 14:56:18 +01:00
parent f229af7b57
commit b72b74864a
+3 -1
View File
@@ -206,7 +206,9 @@ class QWeb(orm.AbstractModel):
if name in context.templates:
return context.templates[name]
raise KeyError('qweb: template "%s" not found' % name)
e = KeyError('qweb: template "%s" not found' % name)
setattr(e, 'qweb_template', name)
raise e
def eval(self, expr, v):
try: