mapbox/rasterio — pull request #204 by alculquicondor (2014-11-14 23:36:23+00:00)
Title: Raise 'Invalid band index' for values <= 0

This should be the default behavior, since this properties are not defined for a dataset.