Change Stream.on_warning notice parameter name to warning
authorHarmon <Harmon758@gmail.com>
Mon, 12 Apr 2021 16:42:38 +0000 (11:42 -0500)
committerHarmon <Harmon758@gmail.com>
Mon, 12 Apr 2021 16:42:38 +0000 (11:42 -0500)
tweepy/streaming.py

index 52c650a467f2697a18b61c0fbc73d24ccd8cc4bb..ca52fc71db71922b884fd698bcfa59148bda3ba7 100644 (file)
@@ -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)