File tree Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Expand file tree Collapse file tree 2 files changed +8
-2
lines changed Original file line number Diff line number Diff line change 35
35
import h5netcdf
36
36
37
37
has_h5netcdf = True
38
- except ModuleNotFoundError :
38
+ except ImportError :
39
+ # Except a base ImportError (not ModuleNotFoundError) to catch usecases
40
+ # where errors have mismatched versions of c-dependencies. This can happen
41
+ # when developers are making changes them.
39
42
has_h5netcdf = False
40
43
41
44
Original file line number Diff line number Diff line change 33
33
import netCDF4
34
34
35
35
has_netcdf4 = True
36
- except ModuleNotFoundError :
36
+ except ImportError :
37
+ # Except a base ImportError (not ModuleNotFoundError) to catch usecases
38
+ # where errors have mismatched versions of c-dependencies. This can happen
39
+ # when developers are making changes them.
37
40
has_netcdf4 = False
38
41
39
42
You can’t perform that action at this time.
0 commit comments