From: Michael Tremer Date: Tue, 24 Oct 2017 14:15:11 +0000 (+0100) Subject: messages: Fix sending emails X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9b02bd3f37c2cf8c3ea673c267b298dca0793b8b;p=pbs.git messages: Fix sending emails Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/messages.py b/src/buildservice/messages.py index 4842574a..c80612b9 100644 --- a/src/buildservice/messages.py +++ b/src/buildservice/messages.py @@ -80,8 +80,7 @@ class Messages(base.Object): # Add the message to the queue that it is sent. self.add(recipient, _subject, _body) - @staticmethod - def send_msg(msg): + def send_msg(self, msg): if not msg.to: logging.warning("Dropping message with empty recipient.") return