Return base class method value in _process_data method for streaming
authorHarmon <Harmon758@gmail.com>
Sun, 1 Jan 2023 16:44:20 +0000 (10:44 -0600)
committerHarmon <Harmon758@gmail.com>
Sun, 1 Jan 2023 16:44:20 +0000 (10:44 -0600)
tweepy/asynchronous/streaming.py
tweepy/streaming.py

index 3adc363b7cd0f454dbfbbfe83ea6a1d5e8f1fde8..4c4dbe95ffed28e0967966cfb21579155a4931e7 100644 (file)
@@ -637,7 +637,7 @@ class AsyncStreamingClient(AsyncBaseClient, AsyncBaseStream):
                 else:
                     return StreamRule(value=data["value"], id=data["id"])
         else:
-            super()._process_data(data, data_type=data_type)
+            return super()._process_data(data, data_type=data_type)
 
     async def add_rules(self, add, **params):
         """add_rules(add, *, dry_run)
index 3098ab17c14c92d6ca150093fe93b23d31c7843f..39a6db7442307c68d4f12d4b9d2e92f25a524464 100644 (file)
@@ -645,7 +645,7 @@ class StreamingClient(BaseClient, BaseStream):
                 else:
                     return StreamRule(value=data["value"], id=data["id"])
         else:
-            super()._process_data(data, data_type=data_type)
+            return super()._process_data(data, data_type=data_type)
 
     def add_rules(self, add, **params):
         """add_rules(add, *, dry_run)