[Spambayes] mboxtrain.py chokes on non-existent directories

Charl Matthee charl at infosat.net
Wed Apr 16 09:26:19 EDT 2003


On Sun Apr 13 2003 at 05:25:26PM -0500 'Skip Montanaro' <skip at pobox.com> wrote:

> I just checked in a change to mboxtrain.py but can't really test it because
> I don't use that code.  Please "cvs up" and give it a try.

Here is what I get:

charl at sa02:~spambayes$ mboxtrain.py -d $HOME/.hammiedb -g /nonexistent
Training ham (/nonexistent):
Traceback (most recent call last):
  File "spambayes/mboxtrain.py", line 294, in ?
    main()
  File "spambayes/mboxtrain.py", line 281, in main
    train(h, g, False, force, trainnew)
  File "spambayes/mboxtrain.py", line 212, in train
    raise ValueError("Nonexistent path: %s" % path)
ValueError: Nonexistent path: /nonexistent
charl at sa02:~spambayes$ mboxtrain.py -d $HOME/.hammiedb -s /nonexistent
Training spam (/nonexistent):
Traceback (most recent call last):
  File "spambayes/mboxtrain.py", line 294, in ?
    main()
  File "spambayes/mboxtrain.py", line 286, in main
    train(h, s, True, force, trainnew)
  File "spambayes/mboxtrain.py", line 212, in train
    raise ValueError("Nonexistent path: %s" % path)
ValueError: Nonexistent path: /nonexistent

Looks good.


Ciao

Charl
__________________________________________________________________________ 

    [  Charl Matthee  ]                           [ +27-11-721-3800 ]   
    [ Systems Manager ]                           [ +27-11-405-6508 ]   
__________________________________________________________________________




More information about the Spambayes mailing list