From 5f3f13631d73ab3e485b4486eb51a2afe8ae910f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Guilhem=20Barth=C3=A9s?= Date: Thu, 14 Mar 2024 17:42:47 +0100 Subject: [PATCH] fix: remove raise in `get_registry_auth` MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Guilhem Barthés --- backend/substrapp/docker_registry.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/substrapp/docker_registry.py b/backend/substrapp/docker_registry.py index 88ac8539d..8e7b128a5 100644 --- a/backend/substrapp/docker_registry.py +++ b/backend/substrapp/docker_registry.py @@ -46,7 +46,7 @@ def get_registry_auth() -> typing.Optional[DockerAuthDict]: if config_path.is_file(): with config_path.open("r") as f: content = json.load(f) - return content.get("auths", {}).get(f"{settings.REGISTRY}") + return content.get("auths", {}).get(f"{settings.REGISTRY}", None) return None