Skip to content
This repository was archived by the owner on Mar 3, 2026. It is now read-only.

Commit 98919c8

Browse files
authored
Merge pull request josegonzalez#136 from einsteinx2/issue/88-macos-keychain-broken-python3
Fixed macOS keychain access when using Python 3
2 parents 045eacb + 81a2f76 commit 98919c8

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

bin/github-backup

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -337,6 +337,8 @@ def get_auth(args, encode=True):
337337
'-s', args.osx_keychain_item_name,
338338
'-a', args.osx_keychain_item_account,
339339
'-w'], stderr=devnull).strip())
340+
if not PY2:
341+
token = token.decode('utf-8')
340342
auth = token + ':' + 'x-oauth-basic'
341343
except:
342344
log_error('No password item matching the provided name and account could be found in the osx keychain.')

0 commit comments

Comments
 (0)