Este site funciona melhor com JavaScript.
Página inicial
Explorar
Ajuda
Acessar
anoopmb
/
frappe
Observar
1
Favorito
0
Fork
0
Código
Issues
0
Pull requests
0
Versões
0
Wiki
Atividade
Ver código fonte
fix: Allow empty webhook data
version-14
Suraj Shetty
3 anos atrás
pai
a07a08b5f0
commit
cc725e9f48
1 arquivos alterados
com
2 adições
e
1 exclusões
Visão dividida
Opções de diferenças
Mostrar estatísticas
Baixar arquivo de patch
Baixar arquivo de diferenças
+2
-1
frappe/utils/jinja.py
+ 2
- 1
frappe/utils/jinja.py
Ver arquivo
@@ -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)
Escrever
Pré-visualização
Carregando…
Cancelar
Salvar