diff options
Diffstat (limited to 'Objects/exceptions.c')
| -rw-r--r-- | Objects/exceptions.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/exceptions.c b/Objects/exceptions.c index 2ac45fb..44c8fd6 100644 --- a/Objects/exceptions.c +++ b/Objects/exceptions.c @@ -246,6 +246,7 @@ BaseException_set_args(PyBaseExceptionObject *self, PyObject *val) } seq = PySequence_Tuple(val); if (!seq) return -1; + Py_CLEAR(self->args); self->args = seq; return 0; } |
