diff options
-rw-r--r-- | Mailman/Handlers/Scrubber.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Mailman/Handlers/Scrubber.py b/Mailman/Handlers/Scrubber.py index 24bb575f..564d4f1a 100644 --- a/Mailman/Handlers/Scrubber.py +++ b/Mailman/Handlers/Scrubber.py @@ -284,6 +284,9 @@ Url: %(url)s # will transform the url into a hyperlink. elif part and not part.is_multipart(): payload = part.get_payload(decode=True) + if type(payload) <> StringType: + # What other type can this be ? Skip this. + continue ctype = part.get_type() # XXX Under email 2.5, it is possible that payload will be None. # This can happen when you have a Content-Type: multipart/* with |