X-Git-Url: https://git.phdru.name/?p=bookmarks_db.git;a=blobdiff_plain;f=Robots%2Fbkmk_robot_base.py;h=8dd032b714e076a75f4bd38ab8db10d65ed45830;hp=eb69c28bb31ed783073b318dc3722a706bb8e9ff;hb=97202bf84e9c78d8fac912a82a85fb1cbb233a4b;hpb=1bc3f08921176ba39efd7f698cea9b3d4ae49765 diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index eb69c28..8dd032b 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot. """ __author__ = "Oleg Broytman " -__copyright__ = "Copyright (C) 2000-2014 PhiloSoft Design" +__copyright__ = "Copyright (C) 2000-2017 PhiloSoft Design" __license__ = "GNU GPL" __all__ = ['robot_base', 'get_error'] @@ -200,7 +200,7 @@ class robot_base(Robot): pass # float timeout self.set_redirect(bookmark, "html", "%s (%s sec)" % (url, timeout)) - except KeyError, key: + except KeyError as key: self.log(" no header: %s" % key) except EOFError: @@ -211,7 +211,7 @@ class robot_base(Robot): self.log("Keyboard interrupt (^C)") return 0 - except socket.error, e: + except socket.error as e: bookmark.error = get_error(e) self.log(bookmark.error)