-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
friendlier error messages for missing chunk managers (#9676)
* raise an error message while guessing if there's no chunkmanager available * don't skip the no chunkmanager test if dask is not installed * whats-new * ensure at least one chunk manager is available * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * remove additional blank line from a bad merge * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * improve the wording Co-authored-by: Tom Nicholas <[email protected]> * switch to ImportError * raise a helpful `ImportError` for known chunk managers * make sure the new `ImportError` is actually raised * check that the more specific error message is preferred * prefer the more specific error * also use `ImportError` as indicator for `chunks=None` * move and improve the whats-new entry * captialize global variable KNOWN_CHUNKMANAGERS * chunkmanagers -> available_chunkmanagers * [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci * also use the string repr for printing `manager` * reword * more repr * reflow * adapt the test to the new error message --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com> Co-authored-by: Tom Nicholas <[email protected]> Co-authored-by: Deepak Cherian <[email protected]>
- Loading branch information
1 parent
6875c64
commit dead70f
Showing
4 changed files
with
54 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters