Skip to content

Commit

Permalink
Make error catching work with updated pyuvdata errors
Browse files Browse the repository at this point in the history
  • Loading branch information
bhazelton authored and jsdillon committed Dec 6, 2023
1 parent a9e1297 commit c2f2c41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hera_cal/io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1832,9 +1832,9 @@ def partial_time_io(hd, times=None, time_range=None, lsts=None, lst_range=None,
return_data=False, **kwargs)
except ValueError as err:
# check to see if the read failed because of the time range or lst range
if 'No elements in time range between ' in str(err):
if 'No elements in time range between ' in str(err) or 'No elements in time_array between ' in str(err):
continue # no matching times, skip this file
elif 'No elements in LST range between ' in str(err):
elif 'No elements in LST range between ' in str(err) or 'No elements in lst_array between ' in str(err):
continue # no matchings lsts, skip this file
else:
raise
Expand Down

0 comments on commit c2f2c41

Please sign in to comment.