From a3bd21d60520ce17ef66992f27f89d749b76f7da Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Tue, 19 Jan 2021 16:24:36 -0500 Subject: [PATCH] Cleanup confetty/nodeconsole exit Unexpected exit from nodeconsole/confetty is now handled better for feedback and terminal usefulness --- confluent_client/bin/confetty | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/confluent_client/bin/confetty b/confluent_client/bin/confetty index 1f1f16e9..d5857777 100755 --- a/confluent_client/bin/confetty +++ b/confluent_client/bin/confetty @@ -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]')