[svn r37899] Try to print the exception before dying.

--HG--
branch : trunk
This commit is contained in:
arigo 2007-02-04 13:31:24 +01:00
parent 41526ad622
commit f13381e3f9
1 changed files with 2 additions and 1 deletions

View File

@ -411,7 +411,8 @@ static void g_initialstub(void* mark)
ts_self->stack_start = NULL; /* dead */ ts_self->stack_start = NULL; /* dead */
g_switch(ts_self->parent, result); g_switch(ts_self->parent, result);
/* must not return from here! */ /* must not return from here! */
Py_FatalError("XXX memory exhausted at a very bad moment"); PyErr_WriteUnraisable((PyObject*) ts_self);
Py_FatalError("greenlets cannot continue");
} }
/* back in the parent */ /* back in the parent */
} }