Skip to content

Commit

Permalink
Fix #3569 backport to release-1.15 (#3571)
Browse files Browse the repository at this point in the history
* Fix #3569 backport to `release-1.15`

* fix CI
  • Loading branch information
johnkerl authored Jan 16, 2025
1 parent 5622d1f commit 5a73a1f
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions apis/python/src/tiledbsoma/soma_vfs.cc
Original file line number Diff line number Diff line change
Expand Up @@ -108,8 +108,10 @@ void load_soma_vfs(py::module& m) {
[](SOMAVFSFilebuf& buf, const std::string& uri) {
auto fb = buf.open(uri, std::ios::in);
if (fb == nullptr) {
TPY_ERROR_LOC(
std::format("URI {} is not a valid URI", uri));
// 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());
}
return fb;
},
Expand All @@ -124,4 +126,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 5a73a1f

Please sign in to comment.