Omkar008 commited on
Commit
5ae1597
1 Parent(s): c640dce

Update get_gmail_data.py

Browse files
Files changed (1) hide show
  1. get_gmail_data.py +2 -2
get_gmail_data.py CHANGED
@@ -270,9 +270,9 @@ class GmailDataExtractor:
270
  subject, body, attachment_data , company_name , encrypt_mssg_id = self.__process_message(message)
271
 
272
  """ Handling None values """
273
- body = body if body is not None else None
274
  attachment_data = attachment_data if attachment_data is not None else {}
275
- company_associated = company_name if company_name is not None else None
276
  en_msg_id = encrypt_mssg_id if encrypt_mssg_id is not None else None
277
 
278
  results.append({"body": body, "attachment_data": [attachment_data] ,'company_associated':company_associated , "message_id":en_msg_id})
 
270
  subject, body, attachment_data , company_name , encrypt_mssg_id = self.__process_message(message)
271
 
272
  """ Handling None values """
273
+ body = body if body is not None else ''
274
  attachment_data = attachment_data if attachment_data is not None else {}
275
+ company_associated = company_name if company_name is not None else ''
276
  en_msg_id = encrypt_mssg_id if encrypt_mssg_id is not None else None
277
 
278
  results.append({"body": body, "attachment_data": [attachment_data] ,'company_associated':company_associated , "message_id":en_msg_id})