Skip to content

zarr.errors ArrayNotFoundError is gone in zarr 3.0 #2961

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
thagusta opened this issue Apr 7, 2025 · 1 comment
Open

zarr.errors ArrayNotFoundError is gone in zarr 3.0 #2961

thagusta opened this issue Apr 7, 2025 · 1 comment

Comments

@thagusta
Copy link

thagusta commented Apr 7, 2025

Hello,

Simple problem, but I can't find documentation how to change my code from zarr 2 to 3.
the migration guide told me to make a new issue.

I have in my code:
from zarr.errors import ArrayNotFoundError

and use it in an try & except to catch if there is no zarr array.

What is the appropriate exception now?

@d-v-b
Copy link
Contributor

d-v-b commented Apr 7, 2025

hi @thagusta, sorry that the migration guide wasn't complete here. I don't think we have implemented a replacement for the ArrayNotFoundError, but I think we need to. At the moment, if you try to use open_array and the array doesn't exist, you will get a FileNotFoundError, but we should absolutely replace this behavior with ArrayNotFoundError.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants