We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5f50e6f commit b1b95ecCopy full SHA for b1b95ec
1 file changed
src/ifcwrap/IfcParseWrapper.i
@@ -294,11 +294,15 @@ private:
294
if (!storage) {
295
Py_RETURN_NONE;
296
}
297
+#ifdef IFOPSH_WITH_ROCKSDB
298
std::string value;
299
if (storage->db->Get(storage->ropts, key, &value) != rocksdb::Status::OK()) {
300
301
302
return PyBytes_FromStringAndSize(value.data(), value.size());
303
+#else
304
+ Py_RETURN_NONE;
305
+#endif
306
307
308
%pythoncode %{
0 commit comments