fix: make render_include work without local object
frappe.throw relies on local, making it impossible to use this function without an active site.
This commit is contained in:
parent
1640aaad04
commit
cc6ff2994f
1 changed files with 1 additions and 1 deletions
|
|
@ -66,7 +66,7 @@ def render_include(content):
|
|||
if "{% include" in content:
|
||||
paths = INCLUDE_DIRECTIVE_PATTERN.findall(content)
|
||||
if not paths:
|
||||
frappe.throw(_("Invalid include path"), InvalidIncludePath)
|
||||
raise InvalidIncludePath
|
||||
|
||||
for path in paths:
|
||||
app, app_path = path.split("/", 1)
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue