Modify PyErr (pyo3) text

Is there a simple way to modify the text of a PyErr without creating a new PyErr?

If you don't have a mutable reference, then no, the only way is to create a new error.

This topic was automatically closed 90 days after the last reply. We invite you to open a new topic if you have further questions or comments.