Skip to content

Commit f2c8dd7

Browse files
Update Python/errors.c
Co-authored-by: Victor Stinner <[email protected]>
1 parent 7deb130 commit f2c8dd7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Python/errors.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1494,7 +1494,7 @@ write_unraisable_exc_file(PyThreadState *tstate, PyObject *exc_type,
14941494
if (print_exception_fn != NULL && PyCallable_Check(print_exception_fn)) {
14951495
PyObject *args[2] = {exc_value, file};
14961496
PyObject *result = PyObject_Vectorcall(print_exception_fn, args, 2, NULL);
1497-
int ok = result != NULL;
1497+
int ok = (result != NULL);
14981498
Py_DECREF(print_exception_fn);
14991499
Py_XDECREF(result);
15001500
if (ok) {

0 commit comments

Comments
 (0)