Skip to content

Commit a87481a

Browse files
committed
Add missing raise
1 parent 9706463 commit a87481a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

arrayfire/arith.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ def arith_binary_func(lhs, rhs, c_func):
1818
is_right_array = isinstance(rhs, array)
1919

2020
if not (is_left_array or is_right_array):
21-
TypeError("Atleast one input needs to be of type arrayfire.array")
21+
raise TypeError("Atleast one input needs to be of type arrayfire.array")
2222

2323
elif (is_left_array and is_right_array):
2424
safe_call(c_func(ct.pointer(out.arr), lhs.arr, rhs.arr, bcast.get()))

0 commit comments

Comments
 (0)