mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-09-24 06:34:54 -04:00
catch and log more exceptions on fetch_url error
This commit is contained in:
parent
561e0803c6
commit
430c0daf39
1 changed files with 2 additions and 0 deletions
|
@ -506,6 +506,8 @@ class BrozzlerWorker:
|
||||||
self.logger.warning("Timed out fetching %s: %s", page.url, e)
|
self.logger.warning("Timed out fetching %s: %s", page.url, e)
|
||||||
except requests.exceptions.ProxyError as e:
|
except requests.exceptions.ProxyError as e:
|
||||||
raise brozzler.ProxyError("proxy error fetching %s" % url) from e
|
raise brozzler.ProxyError("proxy error fetching %s" % url) from e
|
||||||
|
except requests.exceptions.RequestException as e:
|
||||||
|
self.logger.warning("Failed to get headers for %s: %s", page.url, e)
|
||||||
|
|
||||||
def brozzle_site(self, browser, site):
|
def brozzle_site(self, browser, site):
|
||||||
try:
|
try:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue