diff options
author | bwarsaw <> | 2004-02-22 22:43:15 +0000 |
---|---|---|
committer | bwarsaw <> | 2004-02-22 22:43:15 +0000 |
commit | 386a03ff2e57f2b01821fcda9e3abf77308eea14 (patch) | |
tree | cffacd1cc8ed0e6f77b45c292fbf03aa0b2cbd7d | |
parent | 13365d4af483821b85e9272b741239a0e260ea89 (diff) | |
download | mailman2-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-x | bin/update | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -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. |