From 3585f134ecfc5e1c25d37cb6d5bd21fd2d913aa9 Mon Sep 17 00:00:00 2001 From: Harmon Date: Sat, 23 Jan 2021 13:17:52 -0600 Subject: [PATCH] Rename Stream.retry_count to max_retries --- tweepy/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index ba8b508..968af32 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -129,7 +129,7 @@ class Stream: self.listener = listener self.running = False self.daemon = options.get("daemon", False) - self.retry_count = options.get("retry_count", inf) + self.max_retries = options.get("max_retries", inf) # The default socket.read size. Default to less than half the size of # a tweet so that it reads tweets with the minimal latency of 2 reads @@ -166,7 +166,7 @@ class Stream: http_420_error_wait_start = 60 try: - while self.running and error_count <= self.retry_count: + while self.running and error_count <= self.max_retries: try: with self.session.request( 'POST', url, params=params, data=body, -- 2.25.1