From cc725e9f481af717613b1924dd3e59e46e43a069 Mon Sep 17 00:00:00 2001 From: Suraj Shetty Date: Tue, 29 Mar 2022 08:56:16 +0530 Subject: [PATCH] fix: Allow empty webhook data --- frappe/utils/jinja.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/frappe/utils/jinja.py b/frappe/utils/jinja.py index 3702a009fb..4dd297b5b3 100644 --- a/frappe/utils/jinja.py +++ b/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)