Error occurred: list index out of range Full error: Traceback (most recent call last): File "/var/task/lambda_function.py", line 200, in lambda_handler recent_tour_date = events_data[0]['DateTime'].strftime('%Y-%m-%dT%H:%M:%S') or '' IndexError: list index out of range