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 c62f8ae commit 4ac01c0Copy full SHA for 4ac01c0
Python/errors.c
@@ -121,8 +121,7 @@ _PyErr_GetTopmostException(PyThreadState *tstate)
121
_PyErr_StackItem *exc_info = tstate->exc_info;
122
assert(exc_info);
123
124
- while ((exc_info->exc_value == NULL || exc_info->exc_value == Py_None) &&
125
- exc_info->previous_item != NULL)
+ while (exc_info->exc_value == NULL && exc_info->previous_item != NULL)
126
{
127
exc_info = exc_info->previous_item;
128
}
0 commit comments