def update_continuously(records, update_interval=600):
    """Update `records` every `update_interval` seconds"""
    while True:
        for record in records:
            try:
                record.update()
            except (ApiError, RequestException):
                pass
        time.sleep(update_interval)
def update_continuously ( records , update_interval = 600 ) : while True : for record in records : try : record . update ( ) except ( ApiError , RequestException ) : pass time . sleep ( update_interval )
Update `records` every `update_interval` seconds