commit | e0bfecbbddd6714b7667d6b4bb9b401f6b666ff4 | [log] [tgz] |
---|---|---|
author | tomnatan30 <130450079+tomnatan30@users.noreply.github.com> | Thu Apr 18 15:09:31 2024 +0100 |
committer | Copybara-Service <copybara-worker@google.com> | Thu Apr 18 07:13:34 2024 -0700 |
tree | 598e939db838d35ac086a767e35e5c71234e5e7f | |
parent | c61dccaf706cd6a0f9175e4061bfaffa86508728 [diff] |
[mlir][python] Fix PyOperationBase::walk not catching exception in python callback (#89225) If the python callback throws an error, the c++ code will throw a py::error_already_set that needs to be caught and handled in the c++ code . This change is inspired by the similar solution in PySymbolTable::walkSymbolTables. GitOrigin-RevId: bc5536469d7854a043dbfe4c018e5b5dfc069d4f
See https://mlir.llvm.org/ for more information.