Mark Sapiro pushed to branch master at GNU Mailman / Mailman Core
Commits: 0a6653ad by Mark Sapiro at 2021-11-07T16:58:27-08:00 Make code a bit more robust. - - - - - fad5dbd0 by Mark Sapiro at 2021-11-08T01:26:11+00:00 Merge branch 'clean' into 'master' Make code a bit more robust. See merge request mailman/mailman!933 - - - - - 1 changed file: - src/mailman/app/moderator.py Changes: ===================================== src/mailman/app/moderator.py ===================================== @@ -204,8 +204,9 @@ def handle_message(mlist, id, action, comment=None, forward=None): # request for it. delete = True for token, data in pendings.find(pend_type='data'): - if data['_mod_message_id'] == message_id: + if data and data.get('_mod_message_id') == message_id: delete = False + break if delete: message_store.delete_message(message_id) # Log the rejection View it on GitLab: https://gitlab.com/mailman/mailman/-/compare/84040cabdc69e8362da402f86b174ec4a82d9014...fad5dbd0287db18c204f38bd931175f50d19f44b -- View it on GitLab: https://gitlab.com/mailman/mailman/-/compare/84040cabdc69e8362da402f86b174ec4a82d9014...fad5dbd0287db18c204f38bd931175f50d19f44b You're receiving this email because of your account on gitlab.com.
_______________________________________________ Mailman-checkins mailing list -- mailman-checkins@python.org To unsubscribe send an email to mailman-checkins-le...@python.org https://mail.python.org/mailman3/lists/mailman-checkins.python.org/ Member address: arch...@jab.org