MNT: More robust try/except block for finding time in data