-
-
Notifications
You must be signed in to change notification settings - Fork 329
Add a GroupNotFoundError #3066
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
Add a GroupNotFoundError #3066
Conversation
5d8f611
to
fedf099
Compare
would you want to get the other missing errors in here? you could take some of #3012 |
also worth noting that changing the type of the base exception is breaking, because |
I didn't spot #3012, thanks! I'll put this back in draft and have a think when I've got a bit more time. |
I reverted this to just adding a |
incremental progress is progress IMO, so I'm fine with just the one exception added here. |
@@ -88,7 +89,8 @@ def test_parse_node_type_invalid(node_type: Any) -> None: | |||
@pytest.mark.parametrize("data", [None, "group"]) | |||
def test_parse_node_type_array_invalid(data: Any) -> None: | |||
with pytest.raises( | |||
ValueError, match=f"Invalid value for 'node_type'. Expected 'array'. Got '{data}'." | |||
NodeTypeValidationError, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I am wondering now why we have a special exception for this case...
Fixes #2298.
Note I also updated the base zarr exception to no longer inherit from ValueError, because in general errors we raise are not always ValueErrors. I'll add a separate release note for this change.