Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2011-07-14 13:54:03 +0400
committerCampbell Barton <ideasman42@gmail.com>2011-07-14 13:54:03 +0400
commitb028cba0e4878b5034b96772aba85abc9f669a12 (patch)
treeaba21b258be65911c00d5f0d8b61487c840b27f1 /source/blender/python/generic/mathutils.c
parentf70f16723741405ab3c32b9e1f05af35ecf9eb21 (diff)
many mathutils exception types were wrong, went over all exceptions in mathutils and double checked the're correct.
Diffstat (limited to 'source/blender/python/generic/mathutils.c')
-rw-r--r--source/blender/python/generic/mathutils.c2
1 files changed, 1 insertions, 1 deletions
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);