From ac2ba1ef171a204ef2e781945561a89a6ec3cc8b Mon Sep 17 00:00:00 2001 From: Jake Howard Date: Sat, 4 May 2024 20:53:45 +0100 Subject: [PATCH] Return when a colours error is found --- website/contrib/code_block/healthchecks.py | 1 + 1 file changed, 1 insertion(+) diff --git a/website/contrib/code_block/healthchecks.py b/website/contrib/code_block/healthchecks.py index d690e2a..f157756 100644 --- a/website/contrib/code_block/healthchecks.py +++ b/website/contrib/code_block/healthchecks.py @@ -9,6 +9,7 @@ class GitHubLinguistHealthCheckBackend(BaseHealthCheckBackend): colours = _get_linguist_colours() except Exception as e: self.add_error(str(e)) + return if colours is None: self.add_error("No colours provided")