From 6432a3277d824ce149cf0d105bab6b78a91821a4 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Wed, 13 May 2020 11:10:04 -0700 Subject: Fix potential ValueError in MailList.CheckPending. --- Mailman/MailList.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'Mailman') 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 -- cgit v1.2.3