mirror of
https://github.com/pybind/pybind11.git
synced 2026-06-06 05:39:53 +00:00
error_already_set: acquire GIL one line earlier (fixes #1779)
This commit is contained in:
@@ -1998,8 +1998,8 @@ class gil_scoped_release { };
|
||||
|
||||
error_already_set::~error_already_set() {
|
||||
if (m_type) {
|
||||
error_scope scope;
|
||||
gil_scoped_acquire gil;
|
||||
error_scope scope;
|
||||
m_type.release().dec_ref();
|
||||
m_value.release().dec_ref();
|
||||
m_trace.release().dec_ref();
|
||||
|
||||
Reference in New Issue
Block a user