浏览代码

fix: Allow empty webhook data

version-14
Suraj Shetty 3 年前
父节点
当前提交
cc725e9f48
共有 1 个文件被更改,包括 2 次插入1 次删除
  1. +2
    -1
      frappe/utils/jinja.py

+ 2
- 1
frappe/utils/jinja.py 查看文件

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


正在加载...
取消
保存