зеркало из https://github.com/microsoft/azure-cli.git
Catch EOF to minimize stack trace craziness. (#768)
This commit is contained in:
Родитель
8000d63ea9
Коммит
df80c14cb9
|
@ -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)
|
||||
|
|
Загрузка…
Ссылка в новой задаче