Raise TypeError instead of Exception

This commit is contained in:
Jennifer Manriquez 2021-07-08 13:35:22 -05:00
parent fda6071ae5
commit 0c074ea005

View File

@ -722,7 +722,7 @@ def eq(a, b):
else: else:
return e.all() return e.all()
else: else:
raise Exception("== operator returned type %s" % str(type(e))) raise TypeError("== operator returned type %s" % str(type(e)))
def affineSliceCoords(shape, origin, vectors, axes): def affineSliceCoords(shape, origin, vectors, axes):