From 746df900a0877caa2e84d745cfe4f0c94b3783e7 Mon Sep 17 00:00:00 2001 From: Josh Roesslein Date: Wed, 14 Oct 2009 12:55:56 -0500 Subject: [PATCH] Update tutorial 4. --- tutorial/t4.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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... -- 2.25.1