]> git.phdru.name Git - bookmarks_db.git/blobdiff - Robots/bkmk_robot_base.py
Feat(Python3): `except Error, value` -> `except Error as value`
[bookmarks_db.git] / Robots / bkmk_robot_base.py
index eb69c28bb31ed783073b318dc3722a706bb8e9ff..8dd032b714e076a75f4bd38ab8db10d65ed45830 100644 (file)
@@ -5,7 +5,7 @@ This file is a part of Bookmarks database and Internet robot.
 """
 
 __author__ = "Oleg Broytman <phd@phdru.name>"
-__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)