mirror of
https://github.com/internetarchive/brozzler.git
synced 2025-08-02 11:36:15 -04:00
better exceptions for fetch_url
This commit is contained in:
parent
732a7943f0
commit
ba7031f2da
1 changed files with 3 additions and 2 deletions
|
@ -508,11 +508,12 @@ class BrozzlerWorker:
|
|||
)
|
||||
except TimeoutError as e:
|
||||
self.logger.warning("Timed out fetching %s", url)
|
||||
raise brozzler.ProxyError("proxy error fetching %s" % url) from e
|
||||
raise brozzler.PageConnectionError() from e
|
||||
except ProxyError as e:
|
||||
raise brozzler.ProxyError("proxy error fetching %s" % url) from e
|
||||
except urllib3.exceptions.RequestError as e:
|
||||
self.logger.warning("Failed to fetch url %s", page.url, e)
|
||||
self.logger.warning("Failed to fetch url %s: %s", url, e)
|
||||
raise brozzler.PageConnectionError() from e
|
||||
|
||||
def brozzle_site(self, browser, site):
|
||||
try:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue