[FIX] Raise QWebException if 'last_path_node' is not set.

closes odoo/odoo#64074

X-original-commit: 91434c79dee96050a614642f494d7dae4d41703e
Signed-off-by: Romain Derie <rdeodoo@users.noreply.github.com>
This commit is contained in:
Ivàn Todorovich
2021-01-05 11:52:06 +00:00
parent 86214d9b6e
commit 3c1035a2b8
+1 -1
View File
@@ -364,7 +364,7 @@ class QWeb(object):
raise e
except Exception as e:
template = options.get('caller_template', template)
path = options['last_path_node']
path = options.get('last_path_node')
raise QWebException("load could not load template", e, path, name=template)
if document is None: