From 7e13f9b4b5c132936e3737cc02636a77da1ca040 Mon Sep 17 00:00:00 2001 From: Anand Doshi Date: Mon, 6 Feb 2012 11:41:25 +0530 Subject: [PATCH] Fix in email digest due to unicode change --- erpnext/setup/doctype/email_digest/email_digest.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/erpnext/setup/doctype/email_digest/email_digest.py b/erpnext/setup/doctype/email_digest/email_digest.py index 73c3a1ee7a5..93273ba7aa8 100644 --- a/erpnext/setup/doctype/email_digest/email_digest.py +++ b/erpnext/setup/doctype/email_digest/email_digest.py @@ -520,7 +520,8 @@ class DocType: currency = company.default_currency def table(args): - if type(args['body']) == type(''): + table_body = "" + if isinstance(args['body'], basestring): table_body = """\