From 0127bf3a0163852bcf0f4caac8f5214d5a48b917 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Thu, 26 Mar 2015 18:06:33 +0530 Subject: [PATCH] [minor] print format --- frappe/core/doctype/print_format/print_format.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frappe/core/doctype/print_format/print_format.py b/frappe/core/doctype/print_format/print_format.py index 4de0b05d33..77908889e5 100644 --- a/frappe/core/doctype/print_format/print_format.py +++ b/frappe/core/doctype/print_format/print_format.py @@ -19,7 +19,7 @@ class PrintFormat(Document): jenv = frappe.get_jenv() try: - jenv.from_string(self.html) + jenv.from_string(self.html or "") except TemplateSyntaxError, e: frappe.msgprint('Line {}: {}'.format(e.lineno, e.message)) frappe.throw(frappe._("Syntax error in Jinja template"))