From: Oleg Broytman Date: Wed, 31 Jul 2024 22:47:45 +0000 (+0300) Subject: Feat(bkmk_robot_base): Report error on getting icon X-Git-Tag: 5.4.0~10 X-Git-Url: https://git.phdru.name/?a=commitdiff_plain;h=c02a10e7361a74ca00edc2ed68f8596a09a73aac;p=bookmarks_db.git Feat(bkmk_robot_base): Report error on getting icon --- diff --git a/Robots/bkmk_robot_base.py b/Robots/bkmk_robot_base.py index 86f05d0..88ce5ca 100644 --- a/Robots/bkmk_robot_base.py +++ b/Robots/bkmk_robot_base.py @@ -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):