[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:
>1176744092.7541261+83406355fa8fca831709ca6993e45b1b8763a180
>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
>_dispose
>    more = self._dopipeline(mlist, msg, msgdata, pipeline)
>  File "/usr/lib/mailman/Mailman/Queue/IncomingRunner.py", line 153, in
>_dopipeline
>    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_digests
>    send_i18n_digests(mlist, mboxfp)
>  File "/usr/lib/mailman/Mailman/Handlers/ToDigest.py", line 306, in
>send_i18n_digests
>    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:
>1176751776.884974+121ed930b09df2e15bc8390b3ab74317a382467c


I think this is a different manifestation of the same problem discussed
in the thread at
<http://mail.python.org/pipermail/mailman-users/2008-February/060328.html>.

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

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
unshunting.

-- 
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