clang-tidy fix

This commit is contained in:
Wenzel Jakob 2022-11-02 23:17:46 +01:00
parent 39c21a36e4
commit 78e074b8bb
1 changed files with 2 additions and 1 deletions

View File

@ -411,8 +411,9 @@ inline object get_internals_state_dict() {
# else
PyInterpreterState *istate = PyInterpreterState_Get();
# endif
if (istate)
if (istate) {
state_dict = reinterpret_borrow<object>(PyInterpreterState_GetDict(istate));
}
#endif
if (!state_dict) {
raise_from(PyExc_SystemError, "get_internals(): could not acquire state dictionary!");