[spambayes-bugs] [ spambayes-Bugs-1051081 ] uncaught socket timeout
exception slurping URLs
SourceForge.net
noreply at sourceforge.net
Wed Oct 20 23:49:16 CEST 2004
Bugs item #1051081, was opened at 2004-10-20 16:49
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1051081&group_id=61702
Category: None
Group: Source code - CVS
Status: Open
Resolution: None
Priority: 5
Submitted By: Jonathan M. Gilligan (jmgilligan)
Assigned to: Nobody/Anonymous (nobody)
Summary: uncaught socket timeout exception slurping URLs
Initial Comment:
I occasionally get the following failure when spambayes
tries to slurp an URL while classifying and the URL times
out.
It would be better to catch the exception and fail
gracefully to slurp the URL rather than bailing out of the
whole script.
Slurping bestsellingreplicas.info
Traceback (most recent call last):
File "C:\Python23\Scripts\sb_imapfilter.py", line 1020,
in ?
run()
File "C:\Python23\Scripts\sb_imapfilter.py", line 1010,
in run
imap_filter.Filter()
File "C:\Python23\Scripts\sb_imapfilter.py", line 879,
in Filter
self.unsure_folder, self.ham_folder)
File "C:\Python23\Scripts\sb_imapfilter.py", line 767,
in Filter
evidence=True)
File "C:\Python23\Lib\site-
packages\spambayes\classifier.py", line 246, in slu
rping_spamprob
slurp_tokens = list(self._generate_slurp())
File "C:\Python23\Lib\site-
packages\spambayes\classifier.py", line 559, in _ge
nerate_slurp
tokens = self.slurp(*slurp_wordstream)
File "C:\Python23\Lib\site-
packages\spambayes\classifier.py", line 725, in slu
rp
page = f.read()
File "C:\Python23\lib\socket.py", line 283, in read
data = self._sock.recv(recv_size)
socket.timeout: timed out
Running CVS version under python 2.3.4 (#53) under
Win2K.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=498103&aid=1051081&group_id=61702
More information about the Spambayes-bugs
mailing list