From: Harmon Date: Mon, 12 Apr 2021 16:42:38 +0000 (-0500) Subject: Change Stream.on_warning notice parameter name to warning X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=31399328d2af71e13a9f41ceaef254749962084a;p=tweepy.git Change Stream.on_warning notice parameter name to warning --- 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)