Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit c054a66

Browse files
committed
call err_clear in err_setval
1 parent 030ae17 commit c054a66

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Python/errors.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,11 @@ err_setval(exception, value)
7272
object *exception;
7373
object *value;
7474
{
75-
XDECREF(last_exception);
75+
err_clear();
76+
7677
XINCREF(exception);
7778
last_exception = exception;
7879

79-
XDECREF(last_exc_val);
8080
XINCREF(value);
8181
last_exc_val = value;
8282
}

0 commit comments

Comments
 (0)