From: Florent Bruneau Date: Mon, 17 May 2010 19:50:42 +0000 (+0200) Subject: Add missing Unlock on ML creation. X-Git-Tag: xorg/1.0.0~249^2~4 X-Git-Url: http://git.polytechnique.org/?a=commitdiff_plain;h=57b04c902e838639e6829d3878a0d0e8e94d5707;p=platal.git Add missing Unlock on ML creation. WARNING: this patch requires mailman *and* the rpc to be restarted. Signed-off-by: Florent Bruneau --- diff --git a/bin/lists.rpc.py b/bin/lists.rpc.py index 694cee9..c0a08a1 100755 --- a/bin/lists.rpc.py +++ b/bin/lists.rpc.py @@ -875,8 +875,11 @@ def create_list(userdesc, perms, vhost, listname, desc, advertise, modlevel, ins # avoid the "-1 mail to moderate" bug mlist = MailList.MailList(name) - mlist._UpdateRecords() - mlist.Save() + try: + mlist._UpdateRecords() + mlist.Save() + finally: + mlist.Unlock() return 1 def delete_list(userdesc, perms, mlist, del_archives=0):