Skip to content

Commit

Permalink
Fix misspelled IndexError in utils
Browse files Browse the repository at this point in the history
This fix addresses the following NameError: 'IndexErro' is not defined
  • Loading branch information
scriptator committed May 12, 2017
1 parent aefa43e commit ea4c93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netCDF4/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,7 @@ def _StartCountStride(elem, shape, dimensions=None, grp=None, datashape=None,\
# convert negative indices in 1d array to positive ones.
ea = np.where(ea < 0, ea + shape[i], ea)
if np.any(ea < 0):
raise IndexErro("integer index out of range")
raise IndexError("integer index out of range")
# if unlim, let integer index be longer than current dimension
# length.
if ea.shape != (0,):
Expand Down

0 comments on commit ea4c93f

Please sign in to comment.