In Python 3.12 Every PyErr_Fetch must have a matching PyErr_Restore call, otherwise references are created and never de-referenced.
In Python 3.12 Every PyErr_Fetch must have a matching PyErr_Restore call, otherwise references are created and never de-referenced.