Skip to content

Commit b7d33f2

Browse files
committed
fix: added missing error handling to Graph.Random_Bipartite()
1 parent cddbc55 commit b7d33f2

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/_igraph/graphobject.c

+5
Original file line numberDiff line numberDiff line change
@@ -3199,6 +3199,11 @@ PyObject *igraphmodule_Graph_Random_Bipartite(PyTypeObject * type,
31993199
);
32003200
}
32013201

3202+
if (retval) {
3203+
igraphmodule_handle_igraph_error();
3204+
return NULL;
3205+
}
3206+
32023207
CREATE_GRAPH_FROM_TYPE(self, g, type);
32033208
if (self == NULL) {
32043209
return NULL;

0 commit comments

Comments
 (0)