Przeglądaj źródła

fix: Allow empty webhook data

version-14
Suraj Shetty 3 lat temu
rodzic
commit
cc725e9f48
1 zmienionych plików z 2 dodań i 1 usunięć
  1. +2
    -1
      frappe/utils/jinja.py

+ 2
- 1
frappe/utils/jinja.py Wyświetl plik

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


Ładowanie…
Anuluj
Zapisz