--- mailman-2.1.5.1.new/Mailman/Handlers/Scrubber.py 2006-03-02 14:58:34.000000000 +0100 +++ mailman-2.1.5.1/Mailman/Handlers/Scrubber.py 2006-05-09 12:56:06.000000000 +0200 @@ -256,8 +256,10 @@ # If the message isn't a multipart, then we'll strip it out as an # attachment that would have to be separately downloaded. Pipermail # will transform the url into a hyperlink. - elif not part.is_multipart(): + elif part and not part.is_multipart(): payload = part.get_payload(decode=True) + if payload is None: + continue ctype = part.get_type() size = len(payload) omask = os.umask(002)