Comment 24 for bug 266588

Revision history for this message
mark.now (mark-now) wrote :

After installing patch in comment #19 and #22 SpamAssassin.py patch I started to get following error:

 Aug 18 16:14:38 2010 (26738) Uncaught runner exception: unsupported operand type(s) for -=: 'float' and 'str'
Aug 18 16:14:39 2010 (26738) Traceback (most recent call last):
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 120, in _oneloop
    self._onefile(msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/Runner.py", line 191, in _onefile
    keepqueued = self._dispose(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 130, in _dispose
    more = self._dopipeline(mlist, msg, msgdata, pipeline)
  File "/usr/local/mailman/Mailman/Queue/IncomingRunner.py", line 153, in _dopipeline
    sys.modules[modname].process(mlist, msg, msgdata)
  File "/usr/local/mailman/Mailman/Handlers/SpamAssassin.py", line 83, in process
    score -= MEMBER_BONUS
TypeError: unsupported operand type(s) for -=: 'float' and 'str'

I guess TypeError: unsupported operand type(s) for -=: 'float' and 'str' is because the variable type are mixed up.

I changed score -= MEMBER_BONUS into score -= (MEMBER_BONUS) on line 83 and it seems to work ...