Adapted to new standard for initmodule() routine: don't call

Py_FatalError on errors.
This commit is contained in:
Jack Jansen 2000-12-12 22:22:59 +00:00
parent 7e0c0050a8
commit c1a4a04792
1 changed files with 1 additions and 2 deletions

View File

@ -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()