From 554cdb2e3bebe8a44d5bf15fe23242a0bd85f615 Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 12 Apr 2021 12:06:25 -0500 Subject: [PATCH] Change Stream.on_closed resp parameter name to response --- tweepy/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index ac53b13..0cb835a 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -316,12 +316,12 @@ class Stream: """Disconnect the stream""" self.running = False - def on_closed(self, resp): + def on_closed(self, response): """This is called when the stream has been closed by Twitter. Parameters ---------- - resp : requests.Response + response : requests.Response The Response from Twitter """ log.error("Stream connection closed by Twitter") -- 2.25.1