From: Michael Tremer Date: Fri, 14 Oct 2022 14:21:24 +0000 (+0000) Subject: users: Correct use the email class X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7492a6ccc0ec9eb20aaa5894fd3753240ed620b6;p=pbs.git users: Correct use the email class Signed-off-by: Michael Tremer --- diff --git a/src/buildservice/users.py b/src/buildservice/users.py index aababd2b..84c8f042 100644 --- a/src/buildservice/users.py +++ b/src/buildservice/users.py @@ -286,7 +286,7 @@ class User(base.DataObject): """ The name/email address of the user in MIME format """ - return email.utils.formataddr((self.name, self.email)) + return email.utils.formataddr((self.name, self.email.email)) def send_email(self, *args, **kwargs): return self.backend.messages.send_template(