From c054a663eb748f3a02d1501613aa6a05e37887d6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 10 Nov 1994 22:34:33 +0000 Subject: call err_clear in err_setval --- Python/errors.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Python/errors.c b/Python/errors.c index 7266eca..7817108 100644 --- a/Python/errors.c +++ b/Python/errors.c @@ -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; } -- cgit v0.12