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

Charl Matthee charl at infosat.net
Mon Apr 14 00:03:23 EDT 2003


Hi,

I you run mboxtrain.py with -g or -s set to a non-existent directory you
end up with and error like:

Training ham (/home/charl/Mail/mailman):
Traceback (most recent call last):
  File "/home/charl/projects/spambayes/mboxtrain.py", line 292, in ?
    main()
  File "/home/charl/projects/spambayes/mboxtrain.py", line 279, in main
    train(h, g, False, force)
  File "/home/charl/projects/spambayes/mboxtrain.py", line 215, in train
    elif trainnew and os.path.isdir(os.path.join(path, "new")):
NameError: global name 'trainnew' is not defined

Perhaps this should throw a more appropriate error?


Ciao

Charl
__________________________________________________________________________ 

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




More information about the Spambayes mailing list