ebosetalee/20-days-challenge

14 - Hangman-14

Closed this issue · 0 comments

In this task, you'll be handling a specific exception to improve the experience of your users.

There are many in-built exceptions provided by python to be caught for different reasons. For this particular task, you'll be catching the KeyboardInterrupt exception.

Currently while running your game, when a user enters ctrl + c , we have the following error
image

  • Your task is to catch that exception so that the user can exit gracefully without seeing the error stack trace.
  • Display a goodbye message instead. You can use the same message displayed when the exit key is entered.