Skip to content

Commit

Permalink
WIP: _PyErr_SetKeyError
Browse files Browse the repository at this point in the history
  • Loading branch information
Xmader committed Sep 23, 2024
1 parent a2d9ce8 commit 46909e3
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/JSObjectProxy.cc
Original file line number Diff line number Diff line change
Expand Up @@ -702,7 +702,11 @@ PyObject *JSObjectProxyMethodDefinitions::JSObjectProxy_pop_method(JSObjectProxy
Py_INCREF(default_value);
return default_value;
}
#if PY_VERSION_HEX >= 0x030d0000 // Python version is greater than 3.13
PyErr_SetObject(PyExc_KeyError, key);
#else
_PyErr_SetKeyError(key);
#endif
return NULL;
}
else {
Expand Down

0 comments on commit 46909e3

Please sign in to comment.