diff --git a/cosmos/telemetry.py b/cosmos/telemetry.py index 491d4f75c..df6df1f10 100644 --- a/cosmos/telemetry.py +++ b/cosmos/telemetry.py @@ -49,7 +49,7 @@ def emit_usage_metrics(metrics: dict[str, object]) -> bool: logger.debug("Telemetry is enabled. Emitting the following usage metrics to %s: %s", telemetry_url, metrics) try: response = httpx.get(telemetry_url, timeout=constants.TELEMETRY_TIMEOUT, follow_redirects=True) - except httpx.RequestError as e: + except httpx.HTTPError as e: logger.warning( "Unable to emit usage metrics to %s. An HTTPX connection error occurred: %s.", telemetry_url, str(e) )