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 *exception;
object *value; object *value;
{ {
XDECREF(last_exception); err_clear();
XINCREF(exception); XINCREF(exception);
last_exception = exception; last_exception = exception;
XDECREF(last_exc_val);
XINCREF(value); XINCREF(value);
last_exc_val = value; last_exc_val = value;
} }