fix: Translate error message
This commit is contained in:
parent
355a9e7e7b
commit
f234761755
1 changed files with 2 additions and 3 deletions
|
|
@ -3,7 +3,6 @@
|
|||
|
||||
from __future__ import unicode_literals
|
||||
from frappe.utils.jinja import get_jenv
|
||||
import frappe
|
||||
|
||||
|
||||
def resolve_class(classes):
|
||||
|
|
@ -38,13 +37,13 @@ def web_block(template, values=None, **kwargs):
|
|||
|
||||
|
||||
def web_blocks(blocks):
|
||||
from frappe import throw, _dict
|
||||
from frappe import throw, _dict, _
|
||||
from frappe.website.doctype.web_page.web_page import get_web_blocks_html
|
||||
|
||||
web_blocks = []
|
||||
for block in blocks:
|
||||
if not block.get("template"):
|
||||
throw("Web Template is not specified")
|
||||
throw(_("Web Template is not specified"))
|
||||
|
||||
doc = _dict(
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue