Emails without a text/plain part crash the Approved rule

Bug #1158721 reported by Aurélien Bompard
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
GNU Mailman
Fix Released
Medium
Barry Warsaw

Bug Description

If an email has no plain text part, the Approved rule will crash with the following message:
AttributeError: 'NoneType' object has no attribute 'get_payload'

The attached patch fixes the bug and adds a unit test for it. It's been generated from the current bzr branch.

Tags: mailman3

Related branches

Revision history for this message
Aurélien Bompard (abompard) wrote :
Barry Warsaw (barry)
tags: added: mailman3
Changed in mailman:
status: New → Triaged
milestone: none → 3.0.0b4
assignee: nobody → Barry Warsaw (barry)
importance: Undecided → Medium
Barry Warsaw (barry)
Changed in mailman:
milestone: 3.0.0b4 → 3.0.0b5
Barry Warsaw (barry)
Changed in mailman:
status: Triaged → Fix Committed
Barry Warsaw (barry)
Changed in mailman:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.