From b6fe50782552afa24055a451de30247f7fb62f7a Mon Sep 17 00:00:00 2001 From: "Petr \"Stone\" Hracek" Date: Thu, 17 Oct 2024 13:52:04 +0200 Subject: [PATCH] Fix sending multimails Signed-off-by: Petr "Stone" Hracek --- auto_merger/merger.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/auto_merger/merger.py b/auto_merger/merger.py index 44d51fb..7b26a29 100644 --- a/auto_merger/merger.py +++ b/auto_merger/merger.py @@ -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)