Unverified Commit bf88e29c authored by Ralf W. Grosse-Kunstleve's avatar Ralf W. Grosse-Kunstleve Committed by GitHub
Browse files

Bug fix: Replace bare `static exception<T>` with `gil_safe_call_once_and_store`. (#4897)

This is to ensure that `Py_DECREF()` is not called after the Python interpreter was finalized already:

https://github.com/pybind/pybind11/blob/3414c56b6c7c521d868c9a137ca2ace2e26b5b2e/include/pybind11/gil_safe_call_once.h#L19
parent 3414c56b
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment