Skip to content

Commit

Permalink
Fix JSON decoding issue
Browse files Browse the repository at this point in the history
  • Loading branch information
andypiper authored Apr 29, 2019
1 parent d88f798 commit 493c371
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion twauth-web.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def callback():
status=real_resp['status'])
return render_template('error.html', error_message=error_message)

response = json.loads(real_content)
response = json.loads(real_content.decode('utf-8'))

friends_count = response['friends_count']
statuses_count = response['statuses_count']
Expand Down

0 comments on commit 493c371

Please sign in to comment.