[FIX] forwardport: gh api raises by default, avoid that here

This commit is contained in:
Xavier Morel 2019-10-18 08:02:04 +02:00
parent ea410ab6d1
commit c1cef0c18b

View File

@ -132,7 +132,7 @@ class DeleteBranches(models.Model, Queue):
_deleter.info('✘ PR owner != FP target owner (%s)', repo_owner)
return # probably don't have access to arbitrary repos
github = GH(token=repository.project_id.fp_github_token, repo=fp_remote)
github = GH(token=repository.project_id.fp_github_token, repo=fp_remote, check=False)
refurl = 'git/refs/heads/' + branch
ref = github('get', refurl)
if ref.status_code != 200: