issue #477: Python <2.5 did not have combined try/finally/except.

issue510
David Wilson 6 years ago
parent 66b64cae2c
commit 3767d56187

@ -184,10 +184,11 @@ class Stream(mitogen.parent.Stream):
config['on_start'] = self.on_start
try:
mitogen.core.ExternalContext(config).main()
except Exception:
# TODO: report exception somehow.
os._exit(72)
try:
mitogen.core.ExternalContext(config).main()
except Exception:
# TODO: report exception somehow.
os._exit(72)
finally:
# Don't trigger atexit handlers, they were copied from the parent.
os._exit(0)

Loading…
Cancel
Save