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 = """\