Skip to content

Commit

Permalink
Fixed bug in sample_app.py. The access_token needs to be unpacked fro…
Browse files Browse the repository at this point in the history
…m returned arguments.
  • Loading branch information
tonyxiao committed Jul 8, 2012
1 parent 95dc1c5 commit 0028906
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sample_app.py
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def on_callback():
if not code:
return 'Missing code'
try:
access_token = unauthenticated_api.exchange_code_for_access_token(code)
access_token, user_info = unauthenticated_api.exchange_code_for_access_token(code)
if not access_token:
return 'Could not get access token'

Expand Down

0 comments on commit 0028906

Please sign in to comment.