Skip to content

Commit

Permalink
Allow for missing "expires" field in facebook session, which can
Browse files Browse the repository at this point in the history
happen if offline_access is granted.
  • Loading branch information
Ben Darnell committed May 1, 2010
1 parent 339f08b commit 00ad92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tornado/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -813,7 +813,7 @@ def _on_get_user_info(self, callback, session, users):
"profile_url": users[0]["profile_url"],
"username": users[0].get("username"),
"session_key": session["session_key"],
"session_expires": session["expires"],
"session_expires": session.get("expires"),
})

def _parse_response(self, callback, response):
Expand Down

0 comments on commit 00ad92f

Please sign in to comment.