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 config['on_start'] = self.on_start
try: try:
mitogen.core.ExternalContext(config).main() try:
except Exception: mitogen.core.ExternalContext(config).main()
# TODO: report exception somehow. except Exception:
os._exit(72) # TODO: report exception somehow.
os._exit(72)
finally: finally:
# Don't trigger atexit handlers, they were copied from the parent. # Don't trigger atexit handlers, they were copied from the parent.
os._exit(0) os._exit(0)

Loading…
Cancel
Save