From add8422837e2598a7073bdeb1dbd1e47bf3d1d47 Mon Sep 17 00:00:00 2001 From: John Kerl Date: Thu, 11 Apr 2024 11:53:36 -0400 Subject: [PATCH] apply in _ingest_uns_ndarray --- apis/python/src/tiledbsoma/io/ingest.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apis/python/src/tiledbsoma/io/ingest.py b/apis/python/src/tiledbsoma/io/ingest.py index a008960e44..aef011f998 100644 --- a/apis/python/src/tiledbsoma/io/ingest.py +++ b/apis/python/src/tiledbsoma/io/ingest.py @@ -2750,8 +2750,6 @@ def _ingest_uns_ndarray( logging.log_io(msg, msg) return try: - soma_arr = _factory.open(arr_uri, "w", soma_type=DenseNDArray, context=context) - except DoesNotExistError: soma_arr = DenseNDArray.create( arr_uri, type=pa_dtype, @@ -2759,6 +2757,8 @@ def _ingest_uns_ndarray( platform_config=platform_config, context=context, ) + except AlreadyExistsError: + soma_arr = _factory.open(arr_uri, "w", soma_type=DenseNDArray, context=context) # If resume mode: don't re-write existing data. This is the user's explicit request # that we not re-write things that have already been written.