Merge "github: prevent AttributeError when missing branch protection"

This commit is contained in:
Zuul
2018-07-11 20:55:45 +00:00
committed by Gerrit Code Review
2 changed files with 5 additions and 1 deletions

View File

@@ -1116,7 +1116,7 @@ class GithubConnection(BaseConnection):
resp = github.session.get(url, headers=headers)
if resp.status_code == 404:
return None
return {}
return resp.json()