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

View file

@ -9,6 +9,7 @@ class GitHubLinguistHealthCheckBackend(BaseHealthCheckBackend):
colours = _get_linguist_colours() colours = _get_linguist_colours()
except Exception as e: except Exception as e:
self.add_error(str(e)) self.add_error(str(e))
return
if colours is None: if colours is None:
self.add_error("No colours provided") self.add_error("No colours provided")