1 """Simple robot with socket's timeout
3 This file is a part of Bookmarks database and Internet robot.
6 __author__ = "Oleg Broytman <phd@phdru.name>"
7 __copyright__ = "Copyright (C) 2000-2012 PhiloSoft Design"
8 __license__ = "GNU GPL"
10 __all__ = ['robot_simple_tos']
14 socket.setdefaulttimeout(900)
16 from .bkmk_rsimple import robot_simple, get_error
19 class robot_simple_tos(robot_simple):
20 def check_url(self, bookmark):
22 return robot_simple.check_url(self, bookmark)
23 except socket.error, msg:
24 bookmark.error = get_error(msg)
25 self.log(bookmark.error)
27 self.finish_check_url(bookmark)