From df80c14cb9f6f8620afe58a911a94e0aa6cba156 Mon Sep 17 00:00:00 2001 From: Travis Prescott Date: Fri, 26 Aug 2016 15:48:30 -0700 Subject: [PATCH] Catch EOF to minimize stack trace craziness. (#768) --- .../azure/cli/command_modules/feedback/__init__.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/command_modules/azure-cli-feedback/azure/cli/command_modules/feedback/__init__.py b/src/command_modules/azure-cli-feedback/azure/cli/command_modules/feedback/__init__.py index 2d522b4e8..c560d9824 100644 --- a/src/command_modules/azure-cli-feedback/azure/cli/command_modules/feedback/__init__.py +++ b/src/command_modules/azure-cli-feedback/azure/cli/command_modules/feedback/__init__.py @@ -81,8 +81,7 @@ def handle_feedback(): email_address = input(MESSAGES['prompt_email_addr']) _send_feedback(score, response_what_changes, response_do_well, email_address) print(MESSAGES['thanks']) - except KeyboardInterrupt: - # Catch to prevent stacktrace and print newline + except (EOFError, KeyboardInterrupt): print() cli_command('feedback', handle_feedback)