We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9aab7d6 commit ec1ddd7Copy full SHA for ec1ddd7
example/twitter.py
@@ -59,8 +59,12 @@ def tweet():
59
resp = twitter.post('statuses/update.json', data={
60
'status': status
61
})
62
+
63
if resp.status == 403:
- flash('Your tweet was too long.')
64
+ flash("Error: #%d, %s " % (
65
+ resp.data.get('errors')[0].get('code'),
66
+ resp.data.get('errors')[0].get('message'))
67
+ )
68
elif resp.status == 401:
69
flash('Authorization error with Twitter.')
70
else:
0 commit comments