Mercurial > hgrepos > Python > libs > ConfigMix
changeset 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 | e8ff899c363c |
| children | 09e15af29d36 |
| files | configmix/_speedups.c |
| diffstat | 1 files changed, 1 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/configmix/_speedups.c Thu Jan 13 16:03:20 2022 +0100 +++ b/configmix/_speedups.c Thu Jan 13 17:38:57 2022 +0100 @@ -1346,7 +1346,7 @@ if (tmp1 == NULL) { goto error; } - tmp2 = _fast_getvarl(config, tmp1, NULL, default_, sstate); + tmp2 = _fast_getvarl(config, tmp1, NULL, NULL, sstate); if (tmp2 == NULL) { py_clear_ref(&tmp1); goto handle_possible_keyerror;
