1 """Simple robot with socket's timeout
3 This file is a part of Bookmarks database and Internet robot.
6 __version__ = "$Revision$"[11:-2]
7 __revision__ = "$Id$"[5:-2]
8 __date__ = "$Date$"[7:-2]
9 __author__ = "Oleg Broytman <phd@phdru.name>"
10 __copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
11 __license__ = "GNU GPL"
13 __all__ = ['robot_simple_tos']
17 socket.setdefaulttimeout(900)
19 from .bkmk_rsimple import robot_simple, get_error
22 class robot_simple_tos(robot_simple):
23 def check_url(self, bookmark):
25 return robot_simple.check_url(self, bookmark)
26 except socket.error, msg:
27 bookmark.error = get_error(msg)
28 self.log(bookmark.error)
30 self.finish_check_url(bookmark)