diff options
author | Mark Sapiro <mark@msapiro.net> | 2020-05-13 11:10:04 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2020-05-13 11:10:04 -0700 |
commit | 6432a3277d824ce149cf0d105bab6b78a91821a4 (patch) | |
tree | effb664d8168ef4ae9876cce4108fa111b76bead /Mailman | |
parent | 0b36d941cbb142f064756c56c0e19931f1b4a125 (diff) | |
download | mailman2-6432a3277d824ce149cf0d105bab6b78a91821a4.tar.gz mailman2-6432a3277d824ce149cf0d105bab6b78a91821a4.tar.xz mailman2-6432a3277d824ce149cf0d105bab6b78a91821a4.zip |
Fix potential ValueError in MailList.CheckPending.
Diffstat (limited to 'Mailman')
-rw-r--r-- | Mailman/MailList.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 9e6bbcb6..01a5a915 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -1,4 +1,4 @@ -# Copyright (C) 1998-2018 by the Free Software Foundation, Inc. +# Copyright (C) 1998-2020 by the Free Software Foundation, Inc. # # This program is free software; you can redistribute it and/or # modify it under the terms of the GNU General Public License @@ -846,9 +846,8 @@ class MailList(HTMLFormatter, Deliverer, ListAdmin, for k, v in pends.items(): if k in ('evictions', 'version'): continue - op, data = v - if (op == Pending.SUBSCRIPTION and - data.address.lower() == email.lower()): + if (v[0] == Pending.SUBSCRIPTION and + v[1].address.lower() == email.lower()): return True return False |