[Mailman-Developers] Recent cmd_confirm.py error

Jon Parise jon@csh.rit.edu
Thu Oct 31 05:03:16 2002


I've just noticed two instances of the following in my errors log:

Oct 30 10:32:09 2002 (27335) Uncaught runner exception: 'NoneType' object has no attribute 'lstrip'
Oct 30 10:32:09 2002 (27335) Traceback (most recent call last):
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 105, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 154, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 199, in _dispose
    res.process()
  File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 93, in process
    stop = self.do_command(cmd, args)
  File "/usr/local/mailman/Mailman/Queue/CommandRunner.py", line 119, in do_command
    return handler.process(self, args)
  File "/usr/local/mailman/Mailman/Commands/cmd_confirm.py", line 72, in process
    if line.lstrip() == match:
AttributeError: 'NoneType' object has no attribute 'lstrip'

This is with an up-to-date installation of the Mailman 2.1b4+.  I'm
not yet familiar with this part of the Mailman code, so I don't have a
fix.

I suppose the simple workaround would involve checking 'line' against
None, but I'm not sure if the fact that None has trickled down into
res.commands is a problem unto itself (and I don't want to simply mask
the problem).

-- 
Jon Parise (jon@csh.rit.edu)  ::  http://www.csh.rit.edu/~jon/