diff options
author | Mark Sapiro <mark@msapiro.net> | 2016-05-17 12:33:14 -0700 |
---|---|---|
committer | Mark Sapiro <mark@msapiro.net> | 2016-05-17 12:33:14 -0700 |
commit | 686cd52aa51e7a01a321ef83581b75c3de0efc55 (patch) | |
tree | b8106ac65eb010a07384255390a4fa77c3ee7fc8 /bin/list_lists | |
parent | 631b834dd33fd65bf3c6e901980fb96c13a8d153 (diff) | |
download | mailman2-686cd52aa51e7a01a321ef83581b75c3de0efc55.tar.gz mailman2-686cd52aa51e7a01a321ef83581b75c3de0efc55.tar.xz mailman2-686cd52aa51e7a01a321ef83581b75c3de0efc55.zip |
Catch MMUnknownListError in case list is removed after listing names.
Diffstat (limited to 'bin/list_lists')
-rw-r--r-- | bin/list_lists | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bin/list_lists b/bin/list_lists index 9c941958..4a546885 100644 --- a/bin/list_lists +++ b/bin/list_lists @@ -97,7 +97,11 @@ def main(): mlists = [] longest = 0 for n in names: - mlist = MailList.MailList(n, lock=0) + try: + mlist = MailList.MailList(n, lock=0) + except Errors.MMUnknownListError: + # The list could have been deleted by another process. + continue if advertised and not mlist.advertised: continue if public and mlist.archive_private: |