We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bda1218 commit f85c7dcCopy full SHA for f85c7dc
1 file changed
Modules/socketmodule.c
@@ -3373,6 +3373,9 @@ sock_setsockopt(PyObject *self, PyObject *args)
3373
(char*)&flag, sizeof flag);
3374
goto done;
3375
}
3376
+ if (!PyErr_ExceptionMatches(PyExc_TypeError)) {
3377
+ return NULL;
3378
+ }
3379
3380
PyErr_Clear();
3381
/* setsockopt(level, opt, None, flag) */
@@ -3383,6 +3386,9 @@ sock_setsockopt(PyObject *self, PyObject *args)
3383
3386
NULL, (socklen_t)optlen);
3384
3387
3385
3388
3389
3390
3391
3392
3393
3394
/* setsockopt(level, opt, buffer) */
0 commit comments