[spambayes-bugs] [ spambayes-Bugs-760062 ] Traceback untraining a single message

SourceForge.net noreply at sourceforge.net
Tue Jul 8 05:39:45 EDT 2003


Bugs item #760062, was opened at 2003-06-25 06:48
Message generated for change (Comment added) made by mhammond
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=760062&group_id=61702

Category: hammie
Group: None
>Status: Closed
>Resolution: Fixed
Priority: 5
Submitted By: Greg Ward (gward)
Assigned to: Mark Hammond (mhammond)
Summary: Traceback untraining a single message

Initial Comment:
If I use hammie.py to untrain on a single message, it
crashes with NameError:

$ hammie.py -d -p 10.db -U -s msg 
Untraining spam (msg):
     1
Traceback (most recent call last):
  File "/usr/local/bin/hammie.py", line 6, in ?
    spambayes.hammiebulk.main()
  File "/home/greg/lib/python/spambayes/hammiebulk.py",
line 204, in main
    h.store()
  File "/home/greg/lib/python/spambayes/hammie.py",
line 246, in store
    self.bayes.store()
  File "/home/greg/lib/python/spambayes/storage.py",
line 192, in store
    assert word not in self.wordinfo, \
NameError: global name 'word' is not defined

('msg' is a Maildir containing exactly one message;
it's a subset of the spam folder used to create this
training database)


----------------------------------------------------------------------

>Comment By: Mark Hammond (mhammond)
Date: 2003-07-08 21:39

Message:
Logged In: YES 
user_id=14198

Oops - sorry - my obvious error.  Fixed in 1.15 of storage.py

----------------------------------------------------------------------

Comment By: Greg Ward (gward)
Date: 2003-06-25 06:52

Message:
Logged In: YES 
user_id=14422

It looks like the assert in store() could never have worked,
since
'word' is never defined in that method.  Reassigning to
mhammond, since he wrote that code (rev 1.7-1.8, late May 2003).


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=760062&group_id=61702



More information about the Spambayes-bugs mailing list