]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_rsimple_tos.py
Added docstrings, __{version,revision,etc}__ boilerplates.
[bookmarks_db.git] / Robots / bkmk_rsimple_tos.py
index 4d47073d5617f81e3dc668ef0298245ea869131a..25fa88f1d4fe7c514c63bfc0aa3751cc074a3463 100644 (file)
@@ -1,13 +1,19 @@
-"""
-   Simple robot with socket's timeout
+"""Simple robot with socket's timeout
 
-   Written by BroytMann. Copyright (C) 2000-2007 PhiloSoft Design
+This file is a part of Bookmarks database and Internet robot.
 """
 
+__version__ = "$Revision$"[11:-2]
+__revision__ = "$Id$"[5:-2]
+__date__ = "$Date$"[7:-2]
+__author__ = "Oleg Broytman <phd@phdru.name>"
+__copyright__ = "Copyright (C) 2000-2011 PhiloSoft Design"
+__license__ = "GNU GPL"
+
 import socket
 socket.setdefaulttimeout(900)
 
-from bkmk_rsimple import robot_simple, get_error
+from .bkmk_rsimple import robot_simple, get_error
 
 
 class robot_simple_tos(robot_simple):
@@ -16,6 +22,7 @@ class robot_simple_tos(robot_simple):
          return robot_simple.check_url(self, bookmark)
       except socket.error, msg:
          bookmark.error = get_error(msg)
+         self.log(bookmark.error)
 
       self.finish_check_url(bookmark)
       return 1