summaryrefslogtreecommitdiff
path: root/src/mailman/bin/disabled.py
diff options
context:
space:
mode:
authorBarry Warsaw2009-12-28 05:46:55 -0500
committerBarry Warsaw2009-12-28 05:46:55 -0500
commit7174e2fc80c296a71496b177b53205e8f4508feb (patch)
treeeeb9448e12ce8ca30b6a989ef5a59586468c1029 /src/mailman/bin/disabled.py
parentf422ddd4eb550c1bc76172a1031a7387f5a7ec28 (diff)
downloadmailman-7174e2fc80c296a71496b177b53205e8f4508feb.tar.gz
mailman-7174e2fc80c296a71496b177b53205e8f4508feb.tar.zst
mailman-7174e2fc80c296a71496b177b53205e8f4508feb.zip
Diffstat (limited to 'src/mailman/bin/disabled.py')
-rw-r--r--src/mailman/bin/disabled.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/mailman/bin/disabled.py b/src/mailman/bin/disabled.py
index 1ff59ac5e..e444f8dfc 100644
--- a/src/mailman/bin/disabled.py
+++ b/src/mailman/bin/disabled.py
@@ -19,7 +19,6 @@ import time
import logging
import optparse
-from mailman import errors
from mailman import MailList
from mailman import MemberAdaptor
from mailman import Pending
@@ -27,6 +26,7 @@ from mailman import loginit
from mailman.Bouncer import _BounceInfo
from mailman.configuration import config
from mailman.core.i18n import _
+from mailman.interfaces.member import NotAMemberError
from mailman.version import MAILMAN_VERSION
@@ -183,12 +183,12 @@ def main():
member, mlist.internal_name())
try:
mlist.sendNextNotification(member)
- except errors.NotAMemberError:
+ except NotAMemberError:
# There must have been some problem with the data we have
# on this member. Most likely it's that they don't have a
# password assigned. Log this and delete the member.
blog.info(
- 'NotAMemberError when sending disabled notice: %s',
+ 'Cannot send disable notice to non-member: %s',
member)
mlist.ApprovedDeleteMember(member, 'cron/disabled')
mlist.Save()