1 """Simple robot with socket's timeout
3 This file is a part of Bookmarks database and Internet robot.
7 __author__ = "Oleg Broytman <phd@phdru.name>"
8 __copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design"
9 __license__ = "GNU GPL"
11 __all__ = ['robot_urllib_to']
15 socket.setdefaulttimeout(900)
17 from .bkmk_rurllib import robot_urllib, get_error
20 class robot_urllib_to(robot_urllib):
21 def check_url(self, bookmark):
23 return robot_urllib.check_url(self, bookmark)
24 except socket.error, msg:
25 bookmark.error = get_error(msg)
26 self.log(bookmark.error)