Update of /cvsroot/spambayes/spambayes/spambayes
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv8242/spambayes

Modified Files:
        classifier.py 
Log Message:
Fix [ 1166146 ] Tokenizer fails on bad URL

Index: classifier.py
===================================================================
RCS file: /cvsroot/spambayes/spambayes/spambayes/classifier.py,v
retrieving revision 1.30
retrieving revision 1.31
diff -C2 -d -r1.30 -r1.31
*** classifier.py       16 Mar 2005 03:30:13 -0000      1.30
--- classifier.py       29 Mar 2005 05:32:56 -0000      1.31
***************
*** 679,682 ****
--- 679,687 ----
          # it's only two entries, plus one for each type of http error
          # encountered, so it's pretty neglible.
+         # If there is no content in the URL, then just return immediately.
+         # "http://)" will trigger this.
+         if not url:
+             return ["url:non_resolving"]
+         
          from spambayes.tokenizer import Tokenizer
  

_______________________________________________
Spambayes-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/spambayes-checkins

Reply via email to