summaryrefslogtreecommitdiffstats
path: root/Python/errors.c
diff options
context:
space:
mode:
Diffstat (limited to 'Python/errors.c')
-rw-r--r--Python/errors.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/Python/errors.c b/Python/errors.c
index d08c1af..d43501b 100644
--- a/Python/errors.c
+++ b/Python/errors.c
@@ -131,9 +131,8 @@ PyErr_NormalizeException(PyObject **exc, PyObject **val, PyObject **tb)
PyObject *initial_tb = NULL;
if (type == NULL) {
- /* This is a bug. Should never happen. Don't dump core. */
- PyErr_SetString(PyExc_SystemError,
- "PyErr_NormalizeException() called without exception");
+ /* There was no exception, so nothing to do. */
+ return;
}
/* If PyErr_SetNone() was used, the value will have been actually