Skip to content

Commit

Permalink
fix: remove raise in get_registry_auth
Browse files Browse the repository at this point in the history
Signed-off-by: Guilhem Barthés <[email protected]>
  • Loading branch information
guilhem-barthes committed Mar 14, 2024
1 parent 84c40d8 commit 5f3f136
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/substrapp/docker_registry.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 5f3f136

Please sign in to comment.