Return when a colours error is found

This commit is contained in:
Jake Howard 2024-05-04 20:53:45 +01:00
parent 0f328aff0a
commit ac2ba1ef17
Signed by: jake
GPG Key ID: 57AFB45680EDD477
1 changed files with 1 additions and 0 deletions

View File

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