Skip to content

Commit

Permalink
Fix sending multimails
Browse files Browse the repository at this point in the history
Signed-off-by: Petr "Stone" Hracek <[email protected]>
  • Loading branch information
phracek committed Oct 17, 2024
1 parent e706840 commit b6fe507
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion auto_merger/merger.py
Original file line number Diff line number Diff line change
Expand Up @@ -275,9 +275,10 @@ def print_approval_pull_request(self):
print('\n'.join(self.approval_body))

def send_results(self, recipients):
self.logger.debug(f"Recepients are: {recipients}")
if not recipients:
return 1
sender_class = EmailSender(recipient_email=recipients)
sender_class = EmailSender(recipient_email=list(recipients))
subject_msg = "Pull request statuses for organization https://gibhub.com/sclorg"
sender_class.send_email(subject_msg, self.blocked_body + self.approval_body)

Expand Down

0 comments on commit b6fe507

Please sign in to comment.