diff --git a/org_status/org_hosts/github.py b/org_status/org_hosts/github.py index 2264146..a9c0703 100644 --- a/org_status/org_hosts/github.py +++ b/org_status/org_hosts/github.py @@ -55,6 +55,8 @@ def process_repository(self, repo, branch='master'): # return the error result out of the 2 results elif Status.ERROR in repo_status: repo_status = Status.ERROR + else: + repo_status = Status.UNDETERMINED else: repo_status = repo_status[0] diff --git a/org_status/org_hosts/gitlab.py b/org_status/org_hosts/gitlab.py index 2eeec3b..d8c5374 100644 --- a/org_status/org_hosts/gitlab.py +++ b/org_status/org_hosts/gitlab.py @@ -57,6 +57,8 @@ def process_repository(self, repo, branch='master'): # return the error result out of the 2 results elif Status.ERROR in repo_status: repo_status = Status.ERROR + else: + repo_status = Status.UNDETERMINED else: repo_status = repo_status[0] return RepoStatus(repo.web_url, repo_status)