iNTERFACEWARE Products Manual > Learning Center > Learning Python > Error Detection > Error Detection Details > Ignoring Exceptions |
|
Looking for Iguana v.5 or v.6? Learn More or see the Help Center.
If you want your exception handler to detect a particular error and ignore it, use the pass statement. For instance:
This exception handler detects division by zero errors, but does not do anything with them. This means that the divide_x_y(23, 0) statement does not cause anything to be printed.
|