2
0
mirror of https://github.com/xcat2/confluent.git synced 2024-12-23 19:52:10 +00:00

Cleanup confetty/nodeconsole exit

Unexpected exit from nodeconsole/confetty is now
handled better for feedback and terminal usefulness
This commit is contained in:
Jarrod Johnson 2021-01-19 16:24:36 -05:00
parent 6d8474a16a
commit a3bd21d605

View File

@ -1020,6 +1020,13 @@ if __name__ == '__main__':
main()
except BailOut as e:
errcode = e.errorcode
except Exception as e:
import traceback
try:
quitconfetty()
except Exception:
pass
traceback.print_exc()
finally:
if deadline and os.times()[4] < deadline:
sys.stderr.write('[Exited early, hit enter to continue]')