Skip to content
Snippets Groups Projects
Commit 21106364 authored by Yuya Nishihara's avatar Yuya Nishihara
Browse files

phases: fix error return with no exception from computephases()

PySet_Check() does not set an exception.
parent f93a4e3d
No related branches found
No related tags found
No related merge requests found
......@@ -757,5 +757,7 @@
int rev, minrev = -1;
char *node;
if (!PySet_Check(roots))
if (!PySet_Check(roots)) {
PyErr_SetString(PyExc_TypeError,
"roots must be a set of nodes");
return -2;
......@@ -761,4 +763,5 @@
return -2;
}
iterator = PyObject_GetIter(roots);
if (iterator == NULL)
return -2;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment