Skip to content

Commit aa4f92a

Browse files
committed
Merge branch 'tim/edge-config-via-sdk' of https://github.com/groundlight/python-sdk into tim/edge-config-via-sdk
2 parents 305e1b6 + 0d5fcac commit aa4f92a

1 file changed

Lines changed: 3 additions & 7 deletions

File tree

src/groundlight/experimental_api.py

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -983,8 +983,7 @@ def configure_edge( # noqa: PLR0913
983983
response = requests.post(url, headers=headers, json=payload)
984984
if response.status_code == 404:
985985
raise GroundlightClientError(
986-
"This endpoint does not support edge configuration. "
987-
"Are you connected to a Groundlight Edge Endpoint?"
986+
"This endpoint does not support edge configuration. Are you connected to a Groundlight Edge Endpoint?"
988987
)
989988
response.raise_for_status()
990989

@@ -1016,11 +1015,8 @@ def _wait_for_edge_detectors_ready(self, detectors: list, timeout: float) -> Non
10161015
if time.time() >= deadline:
10171016
summary = ", ".join(f"{did}={st or 'unknown'}" for did, st in not_ready)
10181017
raise GroundlightClientError(
1019-
f"Timed out after {timeout}s waiting for edge detectors to be ready. "
1020-
f"Not ready: {summary}"
1018+
f"Timed out after {timeout}s waiting for edge detectors to be ready. Not ready: {summary}"
10211019
)
10221020

1023-
logger.debug(
1024-
f"Waiting for {len(not_ready)}/{len(detector_ids)} edge detector(s) to be ready..."
1025-
)
1021+
logger.debug(f"Waiting for {len(not_ready)}/{len(detector_ids)} edge detector(s) to be ready...")
10261022
time.sleep(POLL_INTERVAL)

0 commit comments

Comments
 (0)