From 31399328d2af71e13a9f41ceaef254749962084a Mon Sep 17 00:00:00 2001 From: Harmon Date: Mon, 12 Apr 2021 11:42:38 -0500 Subject: [PATCH] Change Stream.on_warning notice parameter name to warning --- tweepy/streaming.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tweepy/streaming.py b/tweepy/streaming.py index 52c650a..ca52fc7 100644 --- a/tweepy/streaming.py +++ b/tweepy/streaming.py @@ -293,6 +293,6 @@ class Stream: """This is called when a user withheld content notice is received.""" log.debug("Received user withheld content notice: %s", notice) - def on_warning(self, notice): + def on_warning(self, warning): """This is called when a stall warning message is received.""" - log.warning("Received stall warning: %s", notice) + log.warning("Received stall warning: %s", warning) -- 2.25.1