mirror of https://github.com/pybind/pybind11.git
clang-tidy fix
This commit is contained in:
parent
39c21a36e4
commit
78e074b8bb
|
@ -411,8 +411,9 @@ inline object get_internals_state_dict() {
|
||||||
# else
|
# else
|
||||||
PyInterpreterState *istate = PyInterpreterState_Get();
|
PyInterpreterState *istate = PyInterpreterState_Get();
|
||||||
# endif
|
# endif
|
||||||
if (istate)
|
if (istate) {
|
||||||
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
|
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
|
||||||
|
}
|
||||||
#endif
|
#endif
|
||||||
if (!state_dict) {
|
if (!state_dict) {
|
||||||
raise_from(PyExc_SystemError, "get_internals(): could not acquire state dictionary!");
|
raise_from(PyExc_SystemError, "get_internals(): could not acquire state dictionary!");
|
||||||
|
|
Loading…
Reference in New Issue