comparison configmix/_speedups.c @ 622:8d2d5d54ff3c

FIX: Handle KeyErrors in fast_getvar_s() properly within its function frame
author Franz Glasner <f.glasner@feldmann-mg.com>
date Thu, 13 Jan 2022 17:38:57 +0100
parents 8dc514bd3d5e
children e3a23e9242a0
comparison
equal deleted inserted replaced
621:e8ff899c363c 622:8d2d5d54ff3c
1344 if (PyObject_Not(namespace_b)) { 1344 if (PyObject_Not(namespace_b)) {
1345 tmp1 = _fast_pathstr2path(varname_b, NULL, sstate); 1345 tmp1 = _fast_pathstr2path(varname_b, NULL, sstate);
1346 if (tmp1 == NULL) { 1346 if (tmp1 == NULL) {
1347 goto error; 1347 goto error;
1348 } 1348 }
1349 tmp2 = _fast_getvarl(config, tmp1, NULL, default_, sstate); 1349 tmp2 = _fast_getvarl(config, tmp1, NULL, NULL, sstate);
1350 if (tmp2 == NULL) { 1350 if (tmp2 == NULL) {
1351 py_clear_ref(&tmp1); 1351 py_clear_ref(&tmp1);
1352 goto handle_possible_keyerror; 1352 goto handle_possible_keyerror;
1353 } 1353 }
1354 py_clear_ref(&tmp1); 1354 py_clear_ref(&tmp1);