[Mailman-Developers] Uncaught runner exception: 'generator' object has no attribute 'insert'
Pavel Chytil
paja@asp.ogi.edu
Mon, 26 Nov 2001 22:34:02 -0800
Barry,
well probably did fix what it suppose to, but new pop up as well:
Nov 26 22:23:38 2001 (11876) Uncaught runner exception: unsubscriptable object
Nov 26 22:23:38 2001 (11876) Traceback (most recent call last):
File "/work/mailman/Mailman/Queue/Runner.py", line 104, in __oneloop
self.__onefile(msg, msgdata)
File "/work/mailman/Mailman/Queue/Runner.py", line 152, in __onefile
keepqueued = self._dispose(mlist, msg, msgdata)
File "/work/mailman/Mailman/Queue/CommandRunner.py", line 61, in _dispose
mlist.ParseMailCommands(msg, msgdata)
File "/work/mailman/Mailman/MailCommandHandler.py", line 184, in
ParseMailCommands
lines = email.Iterators.body_line_iterator(msg)[:]
TypeError: unsubscriptable object
this happened after I have clearly install python2.2b and mailman with your
patch (from cvs). I have followed instruction completely, created new list
mailman, received email about new list has been created. So I tried to send
email to mailman-request@asp.ogi.edu with "help" subject line (tried also body
of message with same result) and it created the error message above.
Thanks,
Pavel
Cituji z emailu od "Barry A. Warsaw" <barry@zope.com>:
>
> Oops, forgot the patch!
>
> -Barry
>
> Index: MailCommandHandler.py
> ===================================================================
> RCS file: /cvsroot/mailman/mailman/Mailman/MailCommandHandler.py,v
> retrieving revision 2.24
> diff -u -r2.24 MailCommandHandler.py
> --- MailCommandHandler.py 2001/11/21 17:17:35 2.24
> +++ MailCommandHandler.py 2001/11/27 04:19:23
> @@ -181,7 +181,7 @@
> if mo:
> subject = mo.group('cmd')
>
> - lines = email.Iterators.body_line_iterator(msg)
> + lines = email.Iterators.body_line_iterator(msg)[:]
>
> # Find out if the subject line has a command on it
> subjcmd = []
>