Is there something that interrupts the python code at anytime when a value changes to more than it should? (like an index that goes out of range but instead if it throwing an ior error in the console I'd like to point it to a new function or command?)