diff options
| author | bwarsaw | 2002-05-03 04:38:48 +0000 |
|---|---|---|
| committer | bwarsaw | 2002-05-03 04:38:48 +0000 |
| commit | 7d42106d334fc62f52ffcc5591852a568d3b9ae1 (patch) | |
| tree | 9f228f9b898ff195d50f97664154c269ca9d7b4f /Mailman/Queue/CommandRunner.py | |
| parent | 2783b4cf9b01813894112bbdf148e6c282188567 (diff) | |
| download | mailman-7d42106d334fc62f52ffcc5591852a568d3b9ae1.tar.gz mailman-7d42106d334fc62f52ffcc5591852a568d3b9ae1.tar.zst mailman-7d42106d334fc62f52ffcc5591852a568d3b9ae1.zip | |
Diffstat (limited to 'Mailman/Queue/CommandRunner.py')
| -rw-r--r-- | Mailman/Queue/CommandRunner.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Queue/CommandRunner.py b/Mailman/Queue/CommandRunner.py index 60e6be8ac..a7c52ba8b 100644 --- a/Mailman/Queue/CommandRunner.py +++ b/Mailman/Queue/CommandRunner.py @@ -70,6 +70,9 @@ class Results: # Either there was no text/plain part or we ignored some # non-text/plain parts. self.results.append(_('Ignoring non-text/plain MIME parts')) + if part is None: + # E.g the outer Content-Type: was text/html + return body = part.get_payload() # text/plain parts better have string payloads assert isinstance(body, StringType) or isinstance(body, UnicodeType) |
