omero-py
omero-py copied to clipboard
omero.HdfStorage.update: add size check on data.rowNumbers
Currently if the omero.grid.Data passed to table.update() has rowNumbers values outside the range of rows, the implementation will raise an IndexError which will be returned as an InternalException to the client.
This commit adds an initial call to self.__sizecheck(None, data.rowNumbers) which should raise an ApiUsageException with an appropriate error message in that scenario.
This scenario should be covered by the last tests introduced in https://github.com/ome/openmicroscopy/pull/6412