sbgonenc96 commited on
Commit
5c932ac
·
1 Parent(s): 6ea0c6b

mail list decode string manipulation

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -29,7 +29,7 @@ def execute(file_txt, user_mail, google_api_key, subject_text, content, attachme
29
 
30
  try:
31
  # Parse mail list
32
- mail_list = str(file_txt.decode("utf-8")).strip().split("\n")
33
  #print(mail_list)
34
  if mail_list[-1] == "":
35
  mail_list = mail_list[:-1]
 
29
 
30
  try:
31
  # Parse mail list
32
+ mail_list = str(file_txt.decode("utf-8")).strip().replace("\r" ,"").split("\n")
33
  #print(mail_list)
34
  if mail_list[-1] == "":
35
  mail_list = mail_list[:-1]