mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-07-13 18:19:27 -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)
|
||||
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…
Add table
Add a link
Reference in a new issue