Skip to content

Commit

Permalink
all default handling for optional field welcomeUrl
Browse files Browse the repository at this point in the history
  • Loading branch information
gsfk committed Aug 12, 2024
1 parent e596d22 commit 19af638
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bento_beacon/endpoints/info.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ def build_ga4gh_service_info():
"name": info["name"],
"type": {"artifact": "Beacon v2", "group": "org.ga4gh", "version": info["apiVersion"]},
"environment": info["environment"],
"organization": {"name": info["organization"]["name"], "url": info["organization"]["welcomeUrl"]},
"organization": {"name": info["organization"]["name"], "url": info["organization"].get("welcomeUrl", "")},
"contactUrl": info["organization"]["contactUrl"],
"version": info["version"],
"bento": {"serviceKind": "beacon"},
Expand Down

0 comments on commit 19af638

Please sign in to comment.