diff options
| author | Barry Warsaw | 2014-12-13 13:26:05 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2014-12-13 13:26:05 -0500 |
| commit | 23eb4cef9e074dbc6531f75cd0b23dc2e8acf6da (patch) | |
| tree | 21e8aefd73f09a033fa8d4eaae84fb6052087632 /src/mailman/model/mailinglist.py | |
| parent | 03731dd2d3aac0c9610c3b17d28f6821343fc8ed (diff) | |
| download | mailman-23eb4cef9e074dbc6531f75cd0b23dc2e8acf6da.tar.gz mailman-23eb4cef9e074dbc6531f75cd0b23dc2e8acf6da.tar.zst mailman-23eb4cef9e074dbc6531f75cd0b23dc2e8acf6da.zip | |
Diffstat (limited to 'src/mailman/model/mailinglist.py')
| -rw-r--r-- | src/mailman/model/mailinglist.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/mailman/model/mailinglist.py b/src/mailman/model/mailinglist.py index c55786fe8..8e42bb172 100644 --- a/src/mailman/model/mailinglist.py +++ b/src/mailman/model/mailinglist.py @@ -481,7 +481,9 @@ class MailingList(Model): Member._user == subscriber).first() if member: raise AlreadySubscribedError( - self.fqdn_listname, subscriber, role) + self.fqdn_listname, + subscriber.preferred_address.email, + role) else: raise ValueError('subscriber must be an address or user') member = Member(role=role, |
