From 3ba0055cb109019d98f36aa188e8bd2332656193 Mon Sep 17 00:00:00 2001 From: Tatiana Al-Chueyr Date: Fri, 3 Jan 2025 21:21:07 +0000 Subject: [PATCH] Update dagfactory/telemetry.py --- dagfactory/telemetry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dagfactory/telemetry.py b/dagfactory/telemetry.py index 6b239fca..1ad6d10e 100644 --- a/dagfactory/telemetry.py +++ b/dagfactory/telemetry.py @@ -47,7 +47,7 @@ def emit_usage_metrics(metrics: dict[str, object]) -> bool: logging.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.ConnectError as e: + except httpx.HTTPError as e: logging.warning( "Unable to emit usage metrics to %s. An HTTPX connection error occurred: %s.", telemetry_url, str(e) )