Skip to content

Commit

Permalink
Hide errors on GH accesses
Browse files Browse the repository at this point in the history
  • Loading branch information
FabienLelaquais committed Nov 29, 2024
1 parent 4cb0adf commit d02ab44
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions tools/_setup_generation/step_contributors.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,15 @@ def setup(self, setup: Setup) -> None:
def get_repo_urls(self):
response = self.__get(self.REPOS)
if response.status_code != 200:
print(f"WARNING - Couldn't get repositories. response.status_code: {response.status_code}", flush=True)
#print(f"WARNING - Couldn't get repositories. response.status_code: {response.status_code}", flush=True)
return
repos = response.json()
self.REPO_URLS = list(map(lambda _: _["url"], repos))

def get_avaiga_members(self):
response = self.__get(self.MEMBERS_URL)
if response.status_code != 200:
print(f"WARNING - Couldn't get members. response.status_code: {response.status_code}", flush=True)
#print(f"WARNING - Couldn't get members. response.status_code: {response.status_code}", flush=True)
return
members = response.json()
for member in members:
Expand All @@ -68,7 +68,7 @@ def get_contributors(self):
for url in self.REPO_URLS:
response = self.__get(url + "/contributors")
if response.status_code != 200:
print(f"WARNING - Couldn't get contributors. response.status_code: {response.status_code}", flush=True)
#print(f"WARNING - Couldn't get contributors. response.status_code: {response.status_code}", flush=True)
return
contributors = response.json()
for contrib in contributors:
Expand Down

0 comments on commit d02ab44

Please sign in to comment.