Skip to content

Commit 1fd4a18

Browse files
gdalinfo files should not contain "{}" eu-cdse/openeo-cdse-infra#647
1 parent 4cf8eb4 commit 1fd4a18

File tree

1 file changed

+2
-0
lines changed
  • openeogeotrellis/integrations

1 file changed

+2
-0
lines changed

openeogeotrellis/integrations/gdal.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,8 @@ def read_gdal_info(asset_uri: str) -> GDALInfo:
532532
if os.path.exists(asset_uri + GDALINFO_SUFFIX):
533533
with open(asset_uri + GDALINFO_SUFFIX) as f:
534534
data_gdalinfo = json.load(f)
535+
# We can safely assume that this json is valid and return early.
536+
return data_gdalinfo
535537

536538
if backend_config.gdalinfo_python_call:
537539
start = time.time()

0 commit comments

Comments
 (0)