diff options
| author | Barry Warsaw | 2016-03-08 23:01:14 -0500 |
|---|---|---|
| committer | Barry Warsaw | 2016-03-08 23:01:14 -0500 |
| commit | cb8ddd1671e424478f002e527871f0c5839425d9 (patch) | |
| tree | ff8845ca998b2b4ea2f67a908c862d79f664f6d7 /src/mailman/model/messagestore.py | |
| parent | 47b4d1f987a91e1a2ce9b1e533c166ca21c2477e (diff) | |
| download | mailman-cb8ddd1671e424478f002e527871f0c5839425d9.tar.gz mailman-cb8ddd1671e424478f002e527871f0c5839425d9.tar.zst mailman-cb8ddd1671e424478f002e527871f0c5839425d9.zip | |
Diffstat (limited to 'src/mailman/model/messagestore.py')
| -rw-r--r-- | src/mailman/model/messagestore.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/src/mailman/model/messagestore.py b/src/mailman/model/messagestore.py index f247f94c2..9d0cfbc76 100644 --- a/src/mailman/model/messagestore.py +++ b/src/mailman/model/messagestore.py @@ -56,13 +56,11 @@ class MessageStore: message_id = message_ids[0] if isinstance(message_id, bytes): message_id = message_id.decode('ascii') - # Complain if the Message-ID already exists in the storage. + # If the Message-ID already exists in the store, don't store it again. existing = store.query(Message).filter( Message.message_id == message_id).first() if existing is not None: - raise ValueError( - 'Message ID already exists in message store: {0}'.format( - message_id)) + return None hash32 = add_message_hash(message) # Calculate the path on disk where we're going to store this message # object, in pickled format. |
