iNTERFACEWARE Products Manual > Learning Center > Learning Python > Error Detection > Error Detection Details > Specifying Code For When No Exception Occurs |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
In an exception handler, you can specify code that is to be executed only if no error was detected. To do this, use an else statement:
In this example, the exception handler does not trap any errors, and the code inside the else statement is executed. |