diff options
author | Eric Snow <ericsnowcurrently@gmail.com> | 2024-04-03 16:58:39 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-03 16:58:39 (GMT) |
commit | 976bcb2379709da57073a9e07b518ff51daa617a (patch) | |
tree | 66fca9084cbae6c0b503491f627829d703df19bc /Objects | |
parent | 7ecd55d604a8fa287c1d131cac14d10260be826b (diff) | |
download | cpython-976bcb2379709da57073a9e07b518ff51daa617a.zip cpython-976bcb2379709da57073a9e07b518ff51daa617a.tar.gz cpython-976bcb2379709da57073a9e07b518ff51daa617a.tar.bz2 |
gh-76785: Raise InterpreterError, Not RuntimeError (gh-117489)
I had meant to switch everything to InterpreterError when I added it a while back. At the time I missed a few key spots.
As part of this, I've added print-the-exception to _PyXI_InitTypes() and fixed an error case in `_PyStaticType_InitBuiltin().
Diffstat (limited to 'Objects')
-rw-r--r-- | Objects/typeobject.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/Objects/typeobject.c b/Objects/typeobject.c index 6df9986..51ceb7d 100644 --- a/Objects/typeobject.c +++ b/Objects/typeobject.c @@ -7963,6 +7963,7 @@ _PyStaticType_InitBuiltin(PyInterpreterState *interp, PyTypeObject *self) res = type_ready(self, !ismain); END_TYPE_LOCK() if (res < 0) { + _PyStaticType_ClearWeakRefs(interp, self); static_builtin_state_clear(interp, self); } return res; |