def main(): for i in range(0, 500): logging.debug('working...') try: spy.track_user(UID, i) except: logging.debug('sleeping...') time.sleep(60 * 10)
def main(): while True: spy.track_user(UID) time.sleep(WAIT)