Parcourir la source

fix: Allow empty webhook data

version-14
Suraj Shetty il y a 3 ans
Parent
révision
cc725e9f48
1 fichiers modifiés avec 2 ajouts et 1 suppressions
  1. +2
    -1
      frappe/utils/jinja.py

+ 2
- 1
frappe/utils/jinja.py Voir le fichier

@@ -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)


Chargement…
Annuler
Enregistrer