summaryrefslogtreecommitdiff
path: root/Mailman/MailList.py
diff options
context:
space:
mode:
authorbwarsaw1999-11-12 17:44:28 +0000
committerbwarsaw1999-11-12 17:44:28 +0000
commit7b459beaeadbebc4771275696c7bbb2641ba43e5 (patch)
treee8109698eaa5c0fd7ade978b1a2d93999e091332 /Mailman/MailList.py
parent00ea7fee9b053cb9a4cdf8b337032a3c09be9288 (diff)
downloadmailman-7b459beaeadbebc4771275696c7bbb2641ba43e5.tar.gz
mailman-7b459beaeadbebc4771275696c7bbb2641ba43e5.tar.zst
mailman-7b459beaeadbebc4771275696c7bbb2641ba43e5.zip
Move Unlock() call into try clause in case the list hasn't even gotten
far enough to have a lock object
Diffstat (limited to 'Mailman/MailList.py')
-rw-r--r--Mailman/MailList.py5
1 files changed, 3 insertions, 2 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py
index fbf346702..6d79edafa 100644
--- a/Mailman/MailList.py
+++ b/Mailman/MailList.py
@@ -69,10 +69,11 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin,
try:
for f in self._log_files.values():
f.close()
+ self.Unlock()
except AttributeError:
- # List may not have gotten far enough to have proper _log_files!
+ # List may not have gotten far enough to have proper _log_files or
+ # lock object!
pass
- self.Unlock()
def GetMembers(self):
"""returns a list of the members. (all lowercase)"""