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 186c2ff commit 851d85bCopy full SHA for 851d85b
xarray/backends/cfgrib_.py
@@ -22,9 +22,10 @@
22
except ModuleNotFoundError:
23
has_cfgrib = False
24
# cfgrib throws a RuntimeError if eccodes is not installed
25
-except RuntimeError:
+except (ImportError, RuntimeError):
26
warnings.warn(
27
- "Failed to load cfgrib - most likely eccodes is missing. Try `import cfgrib` to get the error message"
+ "Failed to load cfgrib - most likely there is a problem accessing the ecCodes library. "
28
+ "Try `import cfgrib` to get the full error message"
29
)
30
31
0 commit comments