Skip to content

Commit

Permalink
Fix NameError exception if network is offline (#544)
Browse files Browse the repository at this point in the history
  • Loading branch information
prrvchr authored Jul 24, 2023
1 parent c70a6f1 commit fa0b673
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webdriver_manager/core/http.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def get(self, url, **kwargs) -> Response:
resp = requests.get(
url=url, verify=self._ssl_verify, stream=True, **kwargs)
except exceptions.ConnectionError:
raise ConnectionError(f"Could not reach host. Are you offline?")
raise exceptions.ConnectionError(f"Could not reach host. Are you offline?")
self.validate_response(resp)
return resp

0 comments on commit fa0b673

Please sign in to comment.