from robot import Robot import time try: r=Robot() r.IRControl() #r.lineFollowModeOn() #while True: # time.sleep(0.1) except: r.motor.stop()