Skip to content

Commit

Permalink
and an exception here
Browse files Browse the repository at this point in the history
  • Loading branch information
SunilSimha committed Nov 16, 2023
1 parent db46772 commit a835c8a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions frb/surveys/survey_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,9 @@ def is_inside(surveyname:str, coord:SkyCoord)->bool:
except ReadTimeout:
warnings.warn("Couldn't reach NOIRLAB.", RuntimeWarning)
cat = None
except QueryError:
warnings.warn("Do not have credentials to search HSC.", RuntimeWarning)
cat = None

# Are there any objects in the returned catalog?
if cat is None or len(cat) == 0:
Expand Down

0 comments on commit a835c8a

Please sign in to comment.