X-Git-Url: https://git.phdru.name/bookmarks_db.git/?a=blobdiff_plain;f=Robots%2Fbkmk_rrequests.py;h=4612a8d5384dd2b03a31145132066be3ce33bf77;hb=8e4df3830e6f68b691cb833415d30ab5d37338c9;hp=08fe09ebcd830725ebb54263a7d28f7b36d8e79d;hpb=cc3f4915eed389b729b23d21aba69f5a3c57022e;p=bookmarks_db.git diff --git a/Robots/bkmk_rrequests.py b/Robots/bkmk_rrequests.py index 08fe09e..4612a8d 100644 --- a/Robots/bkmk_rrequests.py +++ b/Robots/bkmk_rrequests.py @@ -51,14 +51,14 @@ class robot_requests(robot_base): error, r = request_get(url, headers, self.timeout, None) if error is not None: self.log(' Error: %s' % error) - if self.proxy: + 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: + 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)