Commit 713b5427 authored by Michal Čihař's avatar Michal Čihař

Fix GitHub auth with Python 3

Signed-off-by: default avatarMichal Čihař <michal@cihar.com>
parent b9e51be1
......@@ -50,7 +50,7 @@ def get_github_email(access_token):
'token {0}'.format(access_token)
)
handle = urlopen(request)
data = json.load(handle)
data = json.loads(handle.read().decode('utf-8'))
email = None
for entry in data:
# Skip not verified ones
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment