From 9b9bd2da5e8113a7fad87781c4deb803b92c87d4 Mon Sep 17 00:00:00 2001 From: fchinembiri Date: Fri, 1 May 2026 12:47:34 +0200 Subject: [PATCH] fix(worker): update stac_client for pystac-client 0.9.0 compatibility --- apps/worker/stac_client.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/apps/worker/stac_client.py b/apps/worker/stac_client.py index bbc084d..8682bd3 100644 --- a/apps/worker/stac_client.py +++ b/apps/worker/stac_client.py @@ -100,16 +100,12 @@ class DEASTACClient: for attempt in range(max_retries): try: return operation(*args, **kwargs) - except ( - pystac_exc.PySTACClientError, - pystac_exc.PySTACIOError, - Exception, - ) as e: + except Exception as e: # Only retry on network-like errors error_str = str(e).lower() should_retry = any( kw in error_str - for kw in ["connection", "timeout", "network", "temporal"] + for kw in ["connection", "timeout", "network", "temporal", "retry", "503", "504"] ) if not should_retry: raise