From 686cd52aa51e7a01a321ef83581b75c3de0efc55 Mon Sep 17 00:00:00 2001 From: Mark Sapiro Date: Tue, 17 May 2016 12:33:14 -0700 Subject: Catch MMUnknownListError in case list is removed after listing names. --- bin/list_lists | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'bin') 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: -- cgit v1.2.3