Permalink
Browse files

fix bug:过期

  • Loading branch information...
1 parent 77b57ea commit bd8af13a3d1660fc7813da9c8878beffb212ae68 xiaomo committed Jun 10, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 app.py
View
2 app.py
@@ -42,7 +42,7 @@ def index():
client.set_access_token(access_token, expires_in)
# 判断有效期
if client.is_expires() == True:
- raise Exception("Expires!")
+ return "access token expired!"
html = ''
html = html + "<p>Welcome User %s <a href=\"logout\">Logout</a></p>" % request.cookies.get('screen_name')
timeline = client.get.statuses__user_timeline()

0 comments on commit bd8af13

Please sign in to comment.