Merge branch 'master' of github.com:webnotes/erpnext
diff --git a/selling/doctype/lead/get_leads.py b/selling/doctype/lead/get_leads.py
index 5b127e7..8c8200c 100644
--- a/selling/doctype/lead/get_leads.py
+++ b/selling/doctype/lead/get_leads.py
@@ -64,7 +64,7 @@
 		if mail.from_email == self.settings.email_id:
 			return
 		
-		add_sales_communication(mail.subject, mail.content, mail.form_email, 
+		add_sales_communication(mail.mail.get("subject", "[No Subject]"), mail.content, mail.form_email, 
 			mail.from_real_name, mail=mail, date=mail.date)
 
 def get_leads():