Skip to content

Commit 0d443e2

Browse files
committed
🚒 typo in connection error check
fixes #74 Signed-off-by: Guyzmo <[email protected]>
1 parent 90f6eb0 commit 0d443e2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

git_repo/services/ext/github.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def connect(self):
2323
self.gh.login(token=self._privatekey)
2424
self.username = self.gh.user().login
2525
except github3.models.GitHubError as err:
26-
if err.code is 401:
26+
if 401 == err.code:
2727
if not self._privatekey:
2828
raise ConnectionError('Could not connect to Github. '
2929
'Please configure .gitconfig '

0 commit comments

Comments
 (0)