I think stranac's answer is what you want, but in case it isn't, note that the error won't be displayed but because you didn't catch the exception, the program will crash.
Join the #python-forum IRC channel on irc.freenode.net for off-topic chat!
Please prefer not to PM members. The point of the forum is so that anyone can benefit. We don't want to help you over PMs/emails/Skype chats that others can't benefit from