Skip to content

Commit 32f7cba

Browse files
committed
clear exception after emitting the warning
1 parent d7f1ab1 commit 32f7cba

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

Modules/_ssl.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6927,6 +6927,7 @@ py_ht_errcode_to_name_create(void) {
69276927
if (rc < 0) {
69286928
goto error;
69296929
}
6930+
PyErr_Clear();
69306931
continue;
69316932
}
69326933
PyObject *value = PyUnicode_FromString(p->mnemonic);
@@ -6983,6 +6984,7 @@ py_ht_libcode_to_name_create(void) {
69836984
if (rc < 0) {
69846985
goto error;
69856986
}
6987+
PyErr_Clear();
69866988
continue;
69876989
}
69886990
PyObject *value = PyUnicode_FromString(p->library);

0 commit comments

Comments
 (0)