Skip to content

Commit

Permalink
Merge pull request #80 from bento-platform/fixes/info-when-katsu-down
Browse files Browse the repository at this point in the history
ignore dataset description if katsu down
  • Loading branch information
gsfk authored Apr 25, 2024
2 parents 35bbfb1 + f9e9edc commit b82484d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion bento_beacon/utils/katsu_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -239,7 +239,11 @@ def katsu_total_individuals_count():
def katsu_datasets(id=None):
c = current_app.config
endpoint = c["KATSU_DATASETS_ENDPOINT"]
response = katsu_get(endpoint, id, query="format=phenopackets")
try:
response = katsu_get(endpoint, id, query="format=phenopackets")
except APIException:
return {}

if "detail" in response and response["detail"] == "Not found.":
return {}

Expand Down

0 comments on commit b82484d

Please sign in to comment.