From 51ee09b99539b5bdf54ad91670820adf57d462d8 Mon Sep 17 00:00:00 2001 From: Jeremy Hylton Date: Fri, 1 Sep 2000 03:46:16 +0000 Subject: Don't call Py_FatalError in module initialization (leaving the rest of the modules for Barry) --- Modules/_cursesmodule.c | 4 ---- Modules/_localemodule.c | 3 --- 2 files changed, 7 deletions(-) diff --git a/Modules/_cursesmodule.c b/Modules/_cursesmodule.c index 8816901..1920ee0 100644 --- a/Modules/_cursesmodule.c +++ b/Modules/_cursesmodule.c @@ -2352,8 +2352,4 @@ init_curses(void) SetDictInt("KEY_MIN", KEY_MIN); SetDictInt("KEY_MAX", KEY_MAX); } - - /* Check for errors */ - if (PyErr_Occurred()) - Py_FatalError("can't initialize module _curses"); } diff --git a/Modules/_localemodule.c b/Modules/_localemodule.c index 5dabfca..2588b8e 100644 --- a/Modules/_localemodule.c +++ b/Modules/_localemodule.c @@ -452,7 +452,4 @@ init_locale(void) x = PyString_FromString(locale__doc__); PyDict_SetItemString(d, "__doc__", x); Py_XDECREF(x); - - if (PyErr_Occurred()) - Py_FatalError("Can't initialize module _locale"); } -- cgit v0.12