Skip to content

Commit

Permalink
[CONTRIB] Handle connection error during version check (#10720)
Browse files Browse the repository at this point in the history
Co-authored-by: Steffen <steffen@stejin.org>
  • Loading branch information
billdirks and stejin authored Dec 2, 2024
1 parent 5b9eb4a commit f14f135
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion great_expectations/data_context/_version_checker.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,9 @@ def _get_latest_version_from_pypi(self) -> version.Version | None:
except requests.HTTPError as http_err:
logger.debug(f"An HTTP error occurred when trying to hit PyPI API: {http_err}")
except requests.Timeout as timeout_exc:
logger.debug(f"Failed to hit the PyPI API due a timeout error: {timeout_exc}")
logger.debug(f"Failed to hit the PyPI API due to a timeout error: {timeout_exc}")
except requests.ConnectionError as connection_err:
logger.debug(f"Failed to hit the PyPI API due to a connection error: {connection_err}")

if not response_json:
return None
Expand Down

0 comments on commit f14f135

Please sign in to comment.