We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 90f6eb0 commit 0d443e2Copy full SHA for 0d443e2
git_repo/services/ext/github.py
@@ -23,7 +23,7 @@ def connect(self):
23
self.gh.login(token=self._privatekey)
24
self.username = self.gh.user().login
25
except github3.models.GitHubError as err:
26
- if err.code is 401:
+ if 401 == err.code:
27
if not self._privatekey:
28
raise ConnectionError('Could not connect to Github. '
29
'Please configure .gitconfig '
0 commit comments