X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=Robots%2Fbkmk_rrequests.py;h=c6a91af3a962a3da3057c022b08edaaf96542ee3;hb=34ea60a99f36e3bd78a2f888475d9e66644cb504;hp=08fe09ebcd830725ebb54263a7d28f7b36d8e79d;hpb=fbb34ad74643bbc69d141e26e105bcef3cdbc62c;p=bookmarks_db.git diff --git a/Robots/bkmk_rrequests.py b/Robots/bkmk_rrequests.py index 08fe09e..c6a91af 100644 --- a/Robots/bkmk_rrequests.py +++ b/Robots/bkmk_rrequests.py @@ -50,16 +50,16 @@ class robot_requests(robot_base): else: error, r = request_get(url, headers, self.timeout, None) if error is not None: - self.log(' Error: %s' % error) - if self.proxy: + self.log(' Error : %s' % error) + if self.proxy and error != '404 not_found': self.log(' Retrying with the proxy...') error, r = request_get(url, headers, self.timeout, self.proxy) if error is None: self.proxy_ok.add(url_host) if error is not None: - if self.proxy: - self.log(' Proxy error: %s' % error) + if self.proxy and error != '404 not_found': + self.log(' Proxy error : %s' % error) if url_host not in self.proxy_ok: self.proxy_error.add(url_host) return error, None, None, None, None