Sfoglia il codice sorgente

fix: Allow empty webhook data

version-14
Suraj Shetty 3 anni fa
parent
commit
cc725e9f48
1 ha cambiato i file con 2 aggiunte e 1 eliminazioni
  1. +2
    -1
      frappe/utils/jinja.py

+ 2
- 1
frappe/utils/jinja.py Vedi File

@@ -48,7 +48,8 @@ def validate_template(html):
"""Throws exception if there is a syntax error in the Jinja Template""" """Throws exception if there is a syntax error in the Jinja Template"""
import frappe import frappe
from jinja2 import TemplateSyntaxError from jinja2 import TemplateSyntaxError

if not html:
return
jenv = get_jenv() jenv = get_jenv()
try: try:
jenv.from_string(html) jenv.from_string(html)


Caricamento…
Annulla
Salva