Skip to content

Commit 9c1c0fe

Browse files
Update Objects/genobject.c
Co-authored-by: Kumar Aditya <kumaraditya@python.org>
1 parent b285594 commit 9c1c0fe

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Objects/genobject.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -518,9 +518,9 @@ gen_set_exception(PyObject *typ, PyObject *val, PyObject *tb)
518518
Py_XINCREF(val);
519519
Py_XINCREF(tb);
520520

521-
if (PyExceptionClass_Check(typ))
521+
if (PyExceptionClass_Check(typ)) {
522522
PyErr_NormalizeException(&typ, &val, &tb);
523-
523+
}
524524
else if (PyExceptionInstance_Check(typ)) {
525525
/* Raising an instance. The value should be a dummy. */
526526
if (val && val != Py_None) {

0 commit comments

Comments
 (0)