From: Josh Roesslein Date: Wed, 14 Oct 2009 17:55:56 +0000 (-0500) Subject: Update tutorial 4. X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=746df900a0877caa2e84d745cfe4f0c94b3783e7;p=tweepy.git Update tutorial 4. --- diff --git a/tutorial/t4.py b/tutorial/t4.py index 9fb3688..57291dc 100644 --- a/tutorial/t4.py +++ b/tutorial/t4.py @@ -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...