socket.timeout errors

26 views
Skip to first unread message

Tom Fawcett

unread,
Mar 27, 2012, 4:36:21 PM3/27/12
to Pattern
Hi. I'm getting socket.timeout errors from pattern.web.URL.download.
I can catch these easily enough, but from the documentation it looks
like pattern.web.URL has its own timeout exception (URLTimeout).
Shouldn't pattern.web be repackaging these?

Thanks,
-Tom

Tom De Smedt

unread,
Mar 27, 2012, 5:02:43 PM3/27/12
to Pattern
Hi, Tom

It should. Right now it catches urllib2.URLError with a "timed out"
message but not socket.timeout. I'll add it to the latest revision. Do
you perhaps have some code that illustrates when and how
socket.timeout is raised?

T
Reply all
Reply to author
Forward
0 new messages