call err_clear in err_setval
This commit is contained in:
parent
030ae17582
commit
c054a663eb
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue