diff options
| -rw-r--r-- | Mailman/Utils.py | 2 | ||||
| -rw-r--r-- | modules/mm_utils.py | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/Mailman/Utils.py b/Mailman/Utils.py index a112daeeb..22e183074 100644 --- a/Mailman/Utils.py +++ b/Mailman/Utils.py @@ -245,7 +245,7 @@ def map_maillists(func, names=None, unlock=None, verbose=0): if verbose: print i, l = MailList(i) if verbose: print - if unlock: + if unlock and l.Locked(): l.Unlock() got.append(apply(func, (l,))) if verbose: print got[-1] diff --git a/modules/mm_utils.py b/modules/mm_utils.py index a112daeeb..22e183074 100644 --- a/modules/mm_utils.py +++ b/modules/mm_utils.py @@ -245,7 +245,7 @@ def map_maillists(func, names=None, unlock=None, verbose=0): if verbose: print i, l = MailList(i) if verbose: print - if unlock: + if unlock and l.Locked(): l.Unlock() got.append(apply(func, (l,))) if verbose: print got[-1] |
