summaryrefslogtreecommitdiff
path: root/Mailman/bin/gate_news.py
diff options
context:
space:
mode:
Diffstat (limited to 'Mailman/bin/gate_news.py')
-rw-r--r--Mailman/bin/gate_news.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Mailman/bin/gate_news.py b/Mailman/bin/gate_news.py
index 9402504dc..e0c1d981a 100644
--- a/Mailman/bin/gate_news.py
+++ b/Mailman/bin/gate_news.py
@@ -235,7 +235,7 @@ def main():
try:
with lockfile.Lock(GATENEWS_LOCK_FILE,
# It's okay to hijack this
- lifetime=LOCK_LIFETIME):
+ lifetime=LOCK_LIFETIME) as lock:
process_lists(lock)
clearcache()
except lockfile.TimeOutError: