We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2911be8 commit 120a6bcCopy full SHA for 120a6bc
1 file changed
src/zarr/storage/_obstore.py
@@ -188,7 +188,12 @@ async def delete(self, key: str) -> None:
188
import obstore as obs
189
190
self._check_writable()
191
- await obs.delete_async(self.store, key)
+
192
+ # Some stores such as local filesystems, GCP and Azure raise an error
193
+ # when deleting a non-existent key, while others such as S3 and in-memory do
194
+ # not. We suppress the error to make the behavior consistent across all stores
195
+ with contextlib.suppress(FileNotFoundError):
196
+ await obs.delete_async(self.store, key)
197
198
@property
199
def supports_partial_writes(self) -> bool:
0 commit comments