From c441739f68d908a3a3358df7312a7cb32298107c Mon Sep 17 00:00:00 2001 From: Jarrod Johnson Date: Wed, 23 Oct 2019 14:41:57 -0400 Subject: [PATCH] Try a less jarring exit strategy Have client not provide a developer looking trace on abort. --- confluent_client/confluent/client.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/confluent_client/confluent/client.py b/confluent_client/confluent/client.py index 57f63024..578ab212 100644 --- a/confluent_client/confluent/client.py +++ b/confluent_client/confluent/client.py @@ -263,6 +263,8 @@ class Command(object): else: p = input('Command is about to affect {0} nodes, continue (y/n)? '.format(nsize)) if p.lower() != 'y': + sys.stderr.write('Aborting at user request\n') + sys.exit(1) raise Exception("Aborting at user request")