Skip to content

Commit dba091f

Browse files
committed
broaden where the exception can be caught
1 parent b30900f commit dba091f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

tests/test_zarr_ipfs.py

+4-4
Original file line numberDiff line numberDiff line change
@@ -144,11 +144,11 @@ def test_authenticated_gateway(random_zarr_dataset: tuple[str, xr.Dataset]):
144144
zarr_path, test_ds = random_zarr_dataset
145145

146146
def write_and_check(store: IPFSStore) -> bool:
147-
store.rpc_uri_stem = "http://127.0.0.1:5002" # 5002 is the port configured in the run-checks.yaml actions file for nginx to serve the proxy on
148-
hamt = HAMT(store=store)
149-
test_ds.to_zarr(store=hamt, mode="w")
150-
loaded_ds = xr.open_zarr(store=hamt)
151147
try:
148+
store.rpc_uri_stem = "http://127.0.0.1:5002" # 5002 is the port configured in the run-checks.yaml actions file for nginx to serve the proxy on
149+
hamt = HAMT(store=store)
150+
test_ds.to_zarr(store=hamt, mode="w")
151+
loaded_ds = xr.open_zarr(store=hamt)
152152
xr.testing.assert_identical(test_ds, loaded_ds)
153153
return True
154154
except Exception as _:

0 commit comments

Comments
 (0)