Skip to content

Commit

Permalink
new exception raising
Browse files Browse the repository at this point in the history
  • Loading branch information
joamag committed Jun 25, 2018
1 parent 99abac9 commit 5c8670d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/pconvert/extension.c
Expand Up @@ -231,7 +231,11 @@ PyObject *extension_blend_multiple(PyObject *self, PyObject *args, PyObject *kwa
if(use_algorithms) {
algorithms_size = PySequence_Size(algorithms);
if(algorithms_size != size - 1) {
abort_("[extension_blend_multiple] Invalid algorithms list size");
PyErr_SetString(
PyExc_TypeError,
"[extension_blend_multiple] Invalid algorithms list size"
);
return NULL;
}
}

Expand Down

0 comments on commit 5c8670d

Please sign in to comment.