Skip to content

Commit 5141780

Browse files
committed
🚒 Fixed typo in 2FA code
1 parent da05dda commit 5141780

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

git_repo/services/ext/github.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -198,11 +198,11 @@ def get_auth_token(cls, login, password, prompt=None):
198198
import platform
199199
gh = github3.GitHub()
200200
gh.login(login, password, two_factor_callback=lambda: prompt('2FA code> '))
201-
gh.authorize(login, password,
201+
auth = gh.authorize(login, password,
202202
scopes=[ 'repo', 'delete_repo', 'gist' ],
203-
note='git-repo token used on {}'.format(platform.node()),
203+
note='git-repo2 token used on {}'.format(platform.node()),
204204
note_url='https://github.com/guyzmo/git-repo')
205-
return gh.token
205+
return auth.token
206206

207207
@property
208208
def user(self):

0 commit comments

Comments
 (0)