Skip to content

Commit

Permalink
Revert 8fcf89b in favor of 3571
Browse files Browse the repository at this point in the history
  • Loading branch information
johnkerl committed Jan 16, 2025
1 parent 8fcf89b commit 5622d1f
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions apis/python/src/tiledbsoma/soma_vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,10 +108,8 @@ void load_soma_vfs(py::module& m) {
[](SOMAVFSFilebuf& buf, const std::string& uri) {
auto fb = buf.open(uri, std::ios::in);
if (fb == nullptr) {
// No std::format in C++17, and fmt::format is overkill here
std::stringstream ss;
ss << "URI {" << uri << "} is not a valid URI";
TPY_ERROR_LOC(ss.str());
TPY_ERROR_LOC(
std::format("URI {} is not a valid URI", uri));
}
return fb;
},
Expand All @@ -126,4 +124,4 @@ void load_soma_vfs(py::module& m) {
py::call_guard<py::gil_scoped_release>())
.def("close", &SOMAVFSFilebuf::close, "should_throw"_a = true);
}
} // namespace libtiledbsomacpp
} // namespace libtiledbsomacpp

0 comments on commit 5622d1f

Please sign in to comment.