Skip to content

Commit 2a48c27

Browse files
committed
Minor fix to prevent an exception from being triggered in blocked repositories.
1 parent e7f630f commit 2a48c27

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/gitxray/include/gh_api.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ def fetch_environment_protection_rules(self, repo, environment):
238238
return self.github_request_json(f"{self.GITHUB_API_BASE_URL}/repos/{repo.get('full_name')}/environments/{environment}/deployment_protection_rules")
239239

240240
def fetch_repository_pull_requests(self, repo):
241-
return self.github_request_json(repo.get('pulls_url').replace("{/number}",""), {'state':'all'})
241+
return self.github_request_json(repo.get('pulls_url', str()).replace("{/number}",""), {'state':'all'})
242242

243243
def fetch_repository_issues(self, repo):
244244
return self.github_request_json(repo.get('issues_url').replace("{/number}",""), {'state':'all'})

0 commit comments

Comments
 (0)