Commit c054a663 authored by Guido van Rossum's avatar Guido van Rossum

call err_clear in err_setval

parent 030ae175
...@@ -72,11 +72,11 @@ err_setval(exception, value) ...@@ -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;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment