From 7923f9de71a4f222e2479854810ebb4a2d63cbcc Mon Sep 17 00:00:00 2001 From: Rushabh Mehta Date: Mon, 9 Sep 2013 12:17:45 +0530 Subject: [PATCH] [website] [minor] moving to framework --- webnotes/utils/email_lib/bulk.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/webnotes/utils/email_lib/bulk.py b/webnotes/utils/email_lib/bulk.py index cdaf853fcc..542fee1a85 100644 --- a/webnotes/utils/email_lib/bulk.py +++ b/webnotes/utils/email_lib/bulk.py @@ -61,7 +61,7 @@ def send(recipients=None, sender=None, doctype='Profile', email_field='email', except HTMLParser.HTMLParseError: text_content = "[See html attachment]" - for r in list(set(recipients)): + for r in filter(None, list(set(recipients))): rdata = webnotes.conn.sql("""select * from `tab%s` where %s=%s""" % (doctype, email_field, '%s'), r, as_dict=1)