Skip to content

Commit

Permalink
fix undefined name BACKOFF_INCREMENT
Browse files Browse the repository at this point in the history
  • Loading branch information
kngenie committed Dec 10, 2019
1 parent 9d49d0b commit f0eadb8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions twitter/tweetarchiver/tweetstream.py
Expand Up @@ -140,8 +140,8 @@ def next(self):
while 1:
if self._response is None:
if self._connection_tries > 0:
backoff = min(self._connection_tries * BACKOFF_INCREMENT,
BACKOFF_MAX)
backoff = min(self._connection_tries * self.BACKOFF_INCREMENT,
self.BACKOFF_MAX)
time.sleep(backoff)
self._connection_tries += 1
self._open_twitter_stream()
Expand Down

0 comments on commit f0eadb8

Please sign in to comment.