mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-02-22 23:59:47 -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)
|
||||
except requests.exceptions.ProxyError as 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):
|
||||
try:
|
||||
|
Loading…
x
Reference in New Issue
Block a user