From c02a10e7361a74ca00edc2ed68f8596a09a73aac Mon Sep 17 00:00:00 2001 From: Oleg Broytman Date: Thu, 1 Aug 2024 01:47:45 +0300 Subject: [PATCH] Feat(bkmk_robot_base): Report error on getting icon --- Robots/bkmk_robot_base.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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): -- 2.39.5