From 4518f340dfb9555aea7216dcd54431dd0c5f9ae0 Mon Sep 17 00:00:00 2001 From: spwoodcock Date: Thu, 15 Feb 2024 14:52:25 +0000 Subject: [PATCH] fix: improve check for raw-data-api success --- osm_rawdata/postgres.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/osm_rawdata/postgres.py b/osm_rawdata/postgres.py index 1ea0625..b753a1c 100755 --- a/osm_rawdata/postgres.py +++ b/osm_rawdata/postgres.py @@ -556,7 +556,7 @@ def queryRemote( log.debug(f"Current status: {response_status}") # response_status options: STARTED, PENDING, SUCCESS - if response_status != "SUCCESS" or isinstance(task_info, str) or not task_info.get("download_url"): + if response_status != "SUCCESS" or not isinstance(task_info, dict) or not task_info.get("download_url"): # Adjust polling frequency after the first minute if elapsed_time > 60: polling_interval = 10 # Poll every 10 seconds after the first minute