Can someone who program the gps gopigo can add a few lines , To turn on a led if the program stops ?


something along the lines of this ?

def handleTheUnhandled(type, value, traceback):
logger.log(“msg”,”The Unhandled was handled”) ## stream that an unexpected exception occured
GPIO.output(7,GPIO.low) ## turn on the LED
exit() ## exit the script

not sure of it working right , that is why i am asking .


You can use the atexit library to call a function when the program ends. We use it in the basic_test_all example to stop the motors on exit: You can read a bit about it here: and should be able to run your function when the program stops to turn on the LED.