From 19af638a36cacc59b7b3212d1bb09f4ff2a53041 Mon Sep 17 00:00:00 2001 From: Gordon Krieger Date: Mon, 12 Aug 2024 16:13:06 +0000 Subject: [PATCH] all default handling for optional field welcomeUrl --- bento_beacon/endpoints/info.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bento_beacon/endpoints/info.py b/bento_beacon/endpoints/info.py index aead8f23..8a436789 100644 --- a/bento_beacon/endpoints/info.py +++ b/bento_beacon/endpoints/info.py @@ -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"},