mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-23 16:19:49 -05:00
catch and log more exceptions on fetch_url error
This commit is contained in:
parent
561e0803c6
commit
430c0daf39
@ -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…
x
Reference in New Issue
Block a user