[spambayes-dev] Dibbler.py error in training

Skip Montanaro skip at pobox.com
Thu Apr 1 18:41:28 EST 2004


    sean> So, I used CVS today. Now I get:
    ...
    sean>   File "/usr/lib/python2.3/site-packages/spambayes/storage.py", line 606, in 
    sean> onRemoveMessage
    sean>     if flags.find(NO_TRAINING_FLAG) < 0:

    sean> AttributeError: 'NoneType' object has no attribute 'find'

This looks like a bug in onRemoveMessage().  I don't know what the meaning
of a flags value of None is supposed to be so I can't fix it, but it's clear
that the flags.find() call has to be conditional on flags not being None.
Tony added that code in the past week or so.  I trust he will know the
correct fix.

Skip



More information about the spambayes-dev mailing list