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 *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;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue