diff options
| author | bwarsaw | 1999-11-12 17:45:23 +0000 |
|---|---|---|
| committer | bwarsaw | 1999-11-12 17:45:23 +0000 |
| commit | 8bd42b16c05bdf8c03b064085df861b15d4f165f (patch) | |
| tree | 9a7c36e05a42dc94422c13833a52ca5d84bc8c9f /Mailman/MailList.py | |
| parent | 7b459beaeadbebc4771275696c7bbb2641ba43e5 (diff) | |
| download | mailman-8bd42b16c05bdf8c03b064085df861b15d4f165f.tar.gz mailman-8bd42b16c05bdf8c03b064085df861b15d4f165f.tar.zst mailman-8bd42b16c05bdf8c03b064085df861b15d4f165f.zip | |
__del__(): wrap Unlock in it's separate try/except
Diffstat (limited to 'Mailman/MailList.py')
| -rw-r--r-- | Mailman/MailList.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Mailman/MailList.py b/Mailman/MailList.py index 6d79edafa..0dc11ed1b 100644 --- a/Mailman/MailList.py +++ b/Mailman/MailList.py @@ -69,10 +69,13 @@ class MailList(MailCommandHandler, HTMLFormatter, Deliverer, ListAdmin, try: for f in self._log_files.values(): f.close() + except AttributeError: + # List didn't get far enough to have _log_files + pass + try: self.Unlock() except AttributeError: - # List may not have gotten far enough to have proper _log_files or - # lock object! + # List didn't get far enough to have __lock pass def GetMembers(self): |
