Skip to content

Commit

Permalink
Merge pull request #82 from Som-Energia/FIX_remove_comma
Browse files Browse the repository at this point in the history
FIX: Avoid starting comma in the email string when the original email string ends with comma
  • Loading branch information
ecarreras authored May 26, 2021
2 parents c3066fc + ebf369f commit 6f611b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion poweremail_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@
def filter_send_emails(emails_str):
if not emails_str:
emails_str = ''
return ', '.join(set([e.strip() for e in emails_str.split(',')]))
return ', '.join(set([e.strip() for e in emails_str.split(',') if e.strip()]))

_priority_selection = [('0', 'Low'),
('1', 'Normal'),
Expand Down

0 comments on commit 6f611b4

Please sign in to comment.