error, http_status_code, redirect_to, headers, content = \
self.get(bookmark, url,
accept_charset=accept_charset)
- if error is not None:
+ if error is not None and (
+ not url_host.startswith('localhost') and
+ not url_host.startswith('127.')
+ ):
self.log(' Error : %s' % error)
- if self.proxy and error != '404 not_found':
+ if self.proxy and http_status_code != 404:
self.log(' Retrying with the proxy...')
error, http_status_code, redirect_to, headers, content = \
self.get(bookmark, url,