Skip to content

Commit 1f50ed8

Browse files
committed
Fix exception message in usm_ndarray.__index__
1 parent be3bd25 commit 1f50ed8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

dpctl/tensor/_usmarray.pyx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -525,7 +525,7 @@ cdef class usm_ndarray:
525525
if np.issubdtype(self.dtype, np.integer):
526526
return int(self)
527527

528-
raise IndexError("only integer or boolean arrays are valid indices")
528+
raise IndexError("only integer arrays are valid indices")
529529

530530
def to_device(self, target_device):
531531
"""

0 commit comments

Comments
 (0)