Skip to content

Commit f15082c

Browse files
authored
Increased verbosity for Value Error raised if backend not installed (#9294)
1 parent 2df31b7 commit f15082c

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

xarray/backends/plugins.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -204,6 +204,9 @@ def get_backend(engine: str | type[BackendEntrypoint]) -> BackendEntrypoint:
204204
if engine not in engines:
205205
raise ValueError(
206206
f"unrecognized engine {engine} must be one of: {list(engines)}"
207+
"To install additional dependencies, see:\n"
208+
"https://docs.xarray.dev/en/stable/user-guide/io.html \n"
209+
"https://docs.xarray.dev/en/stable/getting-started-guide/installing.html"
207210
)
208211
backend = engines[engine]
209212
elif isinstance(engine, type) and issubclass(engine, BackendEntrypoint):

0 commit comments

Comments
 (0)