Skip to content

Commit

Permalink
blanket exception
Browse files Browse the repository at this point in the history
  • Loading branch information
SunilSimha committed Nov 16, 2023
1 parent e29c345 commit 6cf2cb2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions frb/surveys/survey_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,8 @@ def search_all_surveys(coord:SkyCoord, radius:u.Quantity, include_radio:bool=Fal
warnings.warn("Couldn't connect to {:s}. Skipping this for now.".format(surveyname), RuntimeWarning)
except HTTPError:
warnings.warn("Couldn't connect to {:s}. Skipping this for now.".format(surveyname), RuntimeWarning)
else:
warnings.warn("Couldn't search {:s}. Skipping this for now.".format(surveyname), RuntimeWarning)
# Did the survey return something?
if (survey.catalog is not None):
if len(survey.catalog)>0:
Expand Down

0 comments on commit 6cf2cb2

Please sign in to comment.