]> git.ipfire.org Git - pbs.git/commitdiff
messages: Fix sending emails
authorMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2017 14:15:11 +0000 (15:15 +0100)
committerMichael Tremer <michael.tremer@ipfire.org>
Tue, 24 Oct 2017 14:15:11 +0000 (15:15 +0100)
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
src/buildservice/messages.py

index 4842574aad94901e97512bf6233c60f909535a1d..c80612b9916de1b7707aa50d8d33665a7128cdfb 100644 (file)
@@ -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