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")