aboutsummaryrefslogtreecommitdiffstats
path: root/bin/update
diff options
context:
space:
mode:
authorbwarsaw <>2004-02-22 22:43:15 +0000
committerbwarsaw <>2004-02-22 22:43:15 +0000
commit386a03ff2e57f2b01821fcda9e3abf77308eea14 (patch)
treecffacd1cc8ed0e6f77b45c292fbf03aa0b2cbd7d /bin/update
parent13365d4af483821b85e9272b741239a0e260ea89 (diff)
downloadmailman2-386a03ff2e57f2b01821fcda9e3abf77308eea14.tar.gz
mailman2-386a03ff2e57f2b01821fcda9e3abf77308eea14.tar.xz
mailman2-386a03ff2e57f2b01821fcda9e3abf77308eea14.zip
update_pending(): Tokio Kikuchi's patch #899263 for ignoring duplicate pending
ids. (With slight modification by BAW.)
Diffstat (limited to '')
-rwxr-xr-xbin/update6
1 files changed, 4 insertions, 2 deletions
diff --git a/bin/update b/bin/update
index 47affa25..e57a588d 100755
--- a/bin/update
+++ b/bin/update
@@ -582,8 +582,10 @@ def update_pending():
elif op == Pending.HELD_MESSAGE:
# data[0] is the hold id. There better only be one entry per id
id = data[0]
- assert not holds_by_id.has_key(id)
- holds_by_id[id] = (key, val)
+ if holds_by_id.has_key(id):
+ print _('WARNING: Ignoring duplicate pending ID: %(id)s.')
+ else:
+ holds_by_id[id] = (key, val)
# Now we have to lock every list and re-pend all the appropriate
# requests. Note that this will reset all the expiration dates, but that
# should be fine.