Skip to content

Commit

Permalink
Fix: Ignoring status
Browse files Browse the repository at this point in the history
  • Loading branch information
davvard committed Mar 30, 2023
1 parent 6a733da commit c0ac687
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions python/networkx.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ embedded_blobs_t read_attributes( //
ukv_docs_read_t docs_read {};
docs_read.db = collection.db();
docs_read.error = status.member_ptr();
docs_read.options = ukv_option_dont_discard_memory_k;
docs_read.transaction = collection.txn();
docs_read.snapshot = collection.snap();
docs_read.arena = collection.member_arena();
Expand Down Expand Up @@ -966,9 +967,9 @@ void ukv::wrap_networkx(py::module& m) {
[](py_graph_t& g) {
g.index.clear();
if (g.vertices_attrs.db())
g.vertices_attrs.clear();
g.vertices_attrs.clear().throw_unhandled();
if (g.relations_attrs.db())
g.relations_attrs.clear();
g.relations_attrs.clear().throw_unhandled();
},
"Removes both vertices and edges from the graph.");

Expand Down

0 comments on commit c0ac687

Please sign in to comment.