summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1994-11-10 22:34:33 (GMT)
committerGuido van Rossum <guido@python.org>1994-11-10 22:34:33 (GMT)
commitc054a663eb748f3a02d1501613aa6a05e37887d6 (patch)
treeafee9b5c4d8df57f119a573633e165850bfa242b /Python/errors.c
parent030ae175821e4e94c50139c6fac68ac507b0403f (diff)
downloadcpython-c054a663eb748f3a02d1501613aa6a05e37887d6.zip
cpython-c054a663eb748f3a02d1501613aa6a05e37887d6.tar.gz
cpython-c054a663eb748f3a02d1501613aa6a05e37887d6.tar.bz2
call err_clear in err_setval
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c4
1 files 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;
}