]> git.phdru.name Git - bookmarks_db.git/commitdiff
Feat(bkmk_robot_base): Report error on getting icon
authorOleg Broytman <phd@phdru.name>
Wed, 31 Jul 2024 22:47:45 +0000 (01:47 +0300)
committerOleg Broytman <phd@phdru.name>
Thu, 1 Aug 2024 04:16:25 +0000 (07:16 +0300)
Robots/bkmk_robot_base.py

index 86f05d0031e4bd0fc4f259d556af32a20bf2be31..88ce5ca9ef73ace7e72b749e53dce233ff1b4799 100644 (file)
@@ -197,12 +197,12 @@ class robot_base(Robot):
                             try:
                                 _icon_url = icon_url
                                 for i in range(8):
-                                    error, icon_status_code, \
-                                        icon_redirect_to, icon_headers, \
-                                        icon_data = \
+                                    icon_error, \
+                                        icon_status_code, icon_redirect_to, \
+                                        icon_headers, icon_data = \
                                         self.smart_get(bookmark, _icon_url)
-                                    if error:
-                                        raise IOError("No icon")
+                                    if icon_error:
+                                        raise IOError("No icon: " + icon_error)
                                         break
                                     if icon_status_code and (
                                             icon_status_code >= 300):