[Spambayes-checkins] spambayes/spambayes classifier.py,1.30,1.31
Tony Meyer
anadelonbrin at users.sourceforge.net
Tue Mar 29 07:32:58 CEST 2005
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
More information about the Spambayes-checkins
mailing list