[python-arrayfire] 60/250: Add missing raise

Ghislain Vaillant ghisvail-guest at moszumanska.debian.org
Mon Mar 28 22:59:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

ghisvail-guest pushed a commit to branch debian/master
in repository python-arrayfire.

commit a87481a9c6d983713d05692f6c40e1ccc783dfe2
Author: Filipe Maia <filipe.c.maia at gmail.com>
Date:   Thu Aug 27 22:45:43 2015 +0200

    Add missing raise
---
 arrayfire/arith.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/arrayfire/arith.py b/arrayfire/arith.py
index 5a0fb47..ffc8c5b 100644
--- a/arrayfire/arith.py
+++ b/arrayfire/arith.py
@@ -18,7 +18,7 @@ def arith_binary_func(lhs, rhs, c_func):
     is_right_array = isinstance(rhs, array)
 
     if not (is_left_array or is_right_array):
-        TypeError("Atleast one input needs to be of type arrayfire.array")
+        raise TypeError("Atleast one input needs to be of type arrayfire.array")
 
     elif (is_left_array and is_right_array):
         safe_call(c_func(ct.pointer(out.arr), lhs.arr, rhs.arr, bcast.get()))

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/debian-science/packages/python-arrayfire.git



More information about the debian-science-commits mailing list