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-03-12 18:18:08 +0300
committerCampbell Barton <ideasman42@gmail.com>2011-03-12 18:18:08 +0300
commit90d42e114c2b8828e84a5e229da0de0a23ec0a83 (patch)
tree0c80b5f1214cfba5422f0b587b116e66c7a5c0af /source/blender/python/intern/bpy_operator.c
parenta5e59ede6e275d89fb74ab2e2ae1ee581e08356b (diff)
py/rna: BPy_reports_to_error() now takes the exception type as an argument and returns -1 as an error value
Diffstat (limited to 'source/blender/python/intern/bpy_operator.c')
-rw-r--r--source/blender/python/intern/bpy_operator.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/source/blender/python/intern/bpy_operator.c b/source/blender/python/intern/bpy_operator.c
index 73a8deb1b97..ad1bce89896 100644
--- a/source/blender/python/intern/bpy_operator.c
+++ b/source/blender/python/intern/bpy_operator.c
@@ -198,8 +198,7 @@ static PyObject *pyop_call(PyObject *UNUSED(self), PyObject *args)
operator_ret= WM_operator_call_py(C, ot, context, &ptr, reports);
- if(BPy_reports_to_error(reports, FALSE))
- error_val = -1;
+ error_val= BPy_reports_to_error(reports, PyExc_RuntimeError, FALSE);
/* operator output is nice to have in the terminal/console too */
if(reports->list.first) {