From b028cba0e4878b5034b96772aba85abc9f669a12 Mon Sep 17 00:00:00 2001 From: Campbell Barton Date: Thu, 14 Jul 2011 09:54:03 +0000 Subject: many mathutils exception types were wrong, went over all exceptions in mathutils and double checked the're correct. --- source/blender/python/generic/mathutils.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source/blender/python/generic/mathutils.c') diff --git a/source/blender/python/generic/mathutils.c b/source/blender/python/generic/mathutils.c index bba08e312b7..1ff33d5a6bb 100644 --- a/source/blender/python/generic/mathutils.c +++ b/source/blender/python/generic/mathutils.c @@ -75,7 +75,7 @@ static int mathutils_array_parse_fast(float *array, int array_min, int array_max do { i--; if(((array[i]= PyFloat_AsDouble((item= PySequence_Fast_GET_ITEM(value_fast, i)))) == -1.0f) && PyErr_Occurred()) { - PyErr_Format(PyExc_ValueError, + PyErr_Format(PyExc_TypeError, "%.200s: sequence index %d expected a number, " "found '%.200s' type, ", error_prefix, i, Py_TYPE(item)->tp_name); -- cgit v1.2.3