spambayes/spambayes classifier.py,1.30,1.31

"Tony Meyer" <[email protected]>
Newsgroups gmane.mail.spam.spambayes.cvs
Message-ID <[email protected]>
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
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.