This website works better with JavaScript.
Home
Explore
Help
Sign In
anoopmb
/
frappe
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
fix: Allow empty webhook data
version-14
Suraj Shetty
3 years ago
parent
a07a08b5f0
commit
cc725e9f48
1 changed files
with
2 additions
and
1 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-1
frappe/utils/jinja.py
+ 2
- 1
frappe/utils/jinja.py
View File
@@ -48,7 +48,8 @@ def validate_template(html):
"""Throws exception if there is a syntax error in the Jinja Template"""
import frappe
from jinja2 import TemplateSyntaxError
if not html:
return
jenv = get_jenv()
try:
jenv.from_string(html)
Write
Preview
Loading…
Cancel
Save