We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a0e51ee commit 82a1467Copy full SHA for 82a1467
1 file changed
functions-python/backfill_dataset_service_date_range/src/main.py
@@ -94,8 +94,14 @@ def backfill_datasets(session: "Session"):
94
response.raise_for_status()
95
json_data = response.json()
96
else:
97
- logging.info("Blob found, downloading from blob")
98
- json_data = json.loads(dataset_blob.download_as_string())
+ try:
+ logging.info("Blob found, downloading from blob")
99
+ json_data = json.loads(dataset_blob.download_as_string())
100
+ except Exception as e:
101
+ logging.error(f"Error downloading blob: {e} trying json report url")
102
+ response = requests.get(json_report_url)
103
+ response.raise_for_status()
104
+ json_data = response.json()
105
106
extracted_service_start_date = (
107
json_data.get("summary", {})
0 commit comments