From c1a4a04792456bc5e958337f8d18b805918040b3 Mon Sep 17 00:00:00 2001 From: Jack Jansen Date: Tue, 12 Dec 2000 22:22:59 +0000 Subject: [PATCH] Adapted to new standard for initmodule() routine: don't call Py_FatalError on errors. --- Tools/bgen/bgen/bgenModule.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Tools/bgen/bgen/bgenModule.py b/Tools/bgen/bgen/bgenModule.py index f55de977940..b1d5d14123b 100644 --- a/Tools/bgen/bgen/bgenModule.py +++ b/Tools/bgen/bgen/bgenModule.py @@ -65,8 +65,7 @@ class Module(GeneratorGroup): Output(""" PyDict_SetItemString(d, "Error", %s) != 0)""", self.errorname) IndentLevel() - Output("""Py_FatalError("can't initialize %s.Error");""", - self.name) + Output("""return;""") DedentLevel() for tp in self.typeobjects: tp.outputTypeObjectInitializer()