Skip to content

Commit

Permalink
remove unsupported integration call
Browse files Browse the repository at this point in the history
  • Loading branch information
jayfk committed Feb 17, 2017
1 parent d0d1f26 commit becd246
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pyup/providers/github.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,10 @@ def get_default_branch(self, repo):
raise RepoDoesNotExistError()

def get_pull_request_permissions(self, user, repo):
# it's impossible to call this as an integration
if self.integration:
return True

try:
return repo.add_to_collaborators(user.login)
except GithubException:
Expand Down

0 comments on commit becd246

Please sign in to comment.