Skip to content

Commit

Permalink
more clear exception rethrow for python
Browse files Browse the repository at this point in the history
  • Loading branch information
Iximiel committed Dec 20, 2023
1 parent 8591ae5 commit 2986aa0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion plugins/pycv/PythonCVInterface.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -666,7 +666,7 @@ void PythonCVInterface::calculate() {
}

} catch (const py::error_already_set &e) {
plumed_merror(e.what());
plumed_error_nested()<<"("<<getLabel()<<") caught a python exception:\n"<<e.what();
}
}

Expand Down
3 changes: 1 addition & 2 deletions plugins/pycv/PythonFunction.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -212,8 +212,7 @@ void PythonFunction::calculate() {
readReturn(r, getPntrToValue());
}
} catch (const py::error_already_set &e) {
plumed_merror(e.what());
//vdbg(e.what());
plumed_error_nested()<<"("<<getLabel()<<") caught a python exception:\n"<<e.what();
}
}

Expand Down

0 comments on commit 2986aa0

Please sign in to comment.