From fb838dca98c215e90b22d17193a107112781aad0 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Fri, 3 Jan 2025 21:13:55 +0000 Subject: [PATCH] Update cosmos/telemetry.py --- cosmos/telemetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) )