Skip to content

Commit 82b600b

Browse files
committed
Fix after rebase
1 parent 1071d4c commit 82b600b

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/binding/python/Series.cpp

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -599,9 +599,11 @@ users to overwrite default options, while keeping any other ones.
599599
std::string const &overwrite,
600600
py::object &comm) {
601601
auto variant = pythonObjectAsMpiComm(comm);
602-
if (auto errorMsg = std::get_if<std::string>(&variant))
602+
if (auto errorMsg =
603+
std::get_if<py_object_to_mpi_comm_error>(&variant))
603604
{
604-
throw std::runtime_error("[merge_json] " + *errorMsg);
605+
throw std::runtime_error(
606+
"[merge_json] " + std::string(*errorMsg));
605607
}
606608
else
607609
{

0 commit comments

Comments
 (0)