[Mailman-Users] get_content_type() takes exactly 1 argument (2given)

Mark Sapiro mark at msapiro.net
Thu Feb 21 16:48:51 CET 2008

Darragh Gammell wrote:
>I keep seeing this error in my mailman error logs.
>I've tried googling it for reasons but to no avail.
>Anyone seen it before/have a reason.
>Feb 21 17:03:21 2008 (16810) SHUNTING:
>Feb 21 17:03:25 2008 (16810) Uncaught runner exception: get_content_type()
>takes exactly 1 argument (2 given)
>Feb 21 17:03:25 2008 (16810) Traceback (most recent call last):
>  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 111, in _oneloop
>    self._onefile(msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Queue/Runner.py", line 167, in _onefile
>    keepqueued = self._dispose(mlist, msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 130, in
>    more = self._dopipeline(mlist, msg, msgdata, pipeline)
>  File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
>    sys.modules[modname].process(mlist, msg, msgdata)
>  File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 91, in process
>    send_digests(mlist, mboxfp)
>  File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 132, in
>    send_i18n_digests(mlist, mboxfp)
>  File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 306, in
>    msg = scrubber(mlist, msg)
>  File "/var/lib/mailman/Mailman/Handlers/Scrubber.py", line 177, in process
>    if ctype == 'text/plain':
>TypeError: get_content_type() takes exactly 1 argument (2 given)
>Feb 21 17:03:25 2008 (16810) SHUNTING:

I think this is a different manifestation of the same problem discussed
in the thread at

The underlying cause may not be the same, but the problem is
precipitated by a message in the list's lists/listname/digest.mbox

If you can't figure out which message it is (It's probably the first
one in the digest.mbox that's missing from the HTML archive if the
list is archived) You can move the digest.mbox aside, and at worst,
you'll lose the digest, but the list will start again. Then you can
run bin/unshunt to finish processing the shunted messages. Before
running unshunt, it is always a good idea to check the shunt queue for
old messages that you don't want to unshunt and delete those before

Mark Sapiro <mark at msapiro.net>        The highway is for gamblers,
San Francisco Bay Area, California    better use your sense - B. Dylan

More information about the Mailman-Users mailing list