[hot] [fix] web_page.py

This commit is contained in:
Rushabh Mehta 2014-08-25 16:11:32 +05:30
parent 330c057ae7
commit ceb862a0cf

View file

@ -52,7 +52,7 @@ class WebPage(WebsiteGenerator):
def render_dynamic(self, context):
# dynamic
if "<!-- render-jinja -->" in context.main_section:
if context.main_section and "<!-- render-jinja -->" in context.main_section:
context["main_section"] = frappe.render_template(context.main_section,
{"doc": self, "frappe": frappe})
context["no_cache"] = 1