How to Catch Multiple Exceptions in Python
The code in the except block handles the error that was raised. If the except block does not handle the exception, it is passed on to a nested try block. If the nested try block does not handle the exception, it is considered an unhandled exception and the program will exit.