gh-125716: Raise an Exception If _globals_init() Fails In the _interpqueues Module (gh-125802)

The fix applies to the _interpchannels module as well.

I've also included a drive-by typo fix for _interpqueues.
This commit is contained in:
Eric Snow 2024-10-21 13:39:07 -06:00 committed by GitHub
parent 9dde4638e4
commit 44f841f01a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 5 additions and 3 deletions

View file

@ -3482,7 +3482,8 @@ The 'interpreters' module provides a more convenient interface.");
static int
module_exec(PyObject *mod)
{
if (_globals_init() != 0) {
int err = _globals_init();
if (handle_channel_error(err, mod, -1)) {
return -1;
}