mirror of
https://github.com/xcat2/confluent.git
synced 2024-12-24 12:11:52 +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:
parent
6d8474a16a
commit
a3bd21d605
@ -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]')
|
||||
|
Loading…
Reference in New Issue
Block a user