replace `datetimes[ind]` with `datetime` within try (though not except).