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

index fbad440e91a1a26a028daa9180ccd72d4c039e28..52c650a467f2697a18b61c0fbc73d24ccd8cc4bb 100644 (file)
@@ -273,9 +273,9 @@ class Stream:
         """This is called when a status deletion notice is received."""
         log.debug("Received status deletion notice: %d", status_id)
 
-    def on_disconnect_message(self, notice):
+    def on_disconnect_message(self, message):
         """This is called when a disconnect message is received."""
-        log.warning("Received disconnect message: %s", notice)
+        log.warning("Received disconnect message: %s", message)
 
     def on_limit(self, track):
         """This is called when a limit notice is received."""