call err_clear in err_setval

This commit is contained in:
Guido van Rossum 1994-11-10 22:34:33 +00:00
parent 030ae17582
commit c054a663eb
1 changed files with 2 additions and 2 deletions

View File

@ -72,11 +72,11 @@ err_setval(exception, value)
object *exception;
object *value;
{
XDECREF(last_exception);
err_clear();
XINCREF(exception);
last_exception = exception;
XDECREF(last_exc_val);
XINCREF(value);
last_exc_val = value;
}