From c0ac687ce7687b2e8ace1a491033b14cef128cc9 Mon Sep 17 00:00:00 2001 From: Davit Vardanyan <78792753+davvard@users.noreply.github.com> Date: Thu, 30 Mar 2023 11:51:17 +0400 Subject: [PATCH] Fix: Ignoring status --- python/networkx.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/python/networkx.cpp b/python/networkx.cpp index 643f946cf..4392f445f 100644 --- a/python/networkx.cpp +++ b/python/networkx.cpp @@ -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(); @@ -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.");