Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Zahra Rajabi
tweepy
Commits
746df900
Commit
746df900
authored
Oct 14, 2009
by
Josh Roesslein
Browse files
Update tutorial 4.
parent
1e704be2
Changes
1
Hide whitespace changes
Inline
Side-by-side
tutorial/t4.py
View file @
746df900
...
...
@@ -48,9 +48,8 @@ except tweepy.TweepError, e:
print
'Failed to get timeline: %s'
%
e
"""
By default Tweepy will only retry when a status code of 500, 502, or 503
is returned by Twitter. All other codes result in an immediate TweepError.
If we do not provide a retry_delay Tweepy by default does not wait between requests.
By default Tweepy will retry on any non-200 status code returned by twitter.
The default retry_delay is zero, so if no delay is provided Tweepy will retry right away.
Let's say we want to retry on status code responses of 400 only.
Here is how we do that...
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment