Skip to content

Commit 0af5127

Browse files
authored
Merge pull request confluentinc#109 from t0mk/master
Fix handling of None messages in AvroConsumer
2 parents 20bb8bb + 4827a75 commit 0af5127

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

confluent_kafka/avro/__init__.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -148,6 +148,8 @@ def poll(self, timeout=None):
148148
if timeout is None:
149149
timeout = -1
150150
message = super(AvroConsumer, self).poll(timeout)
151+
if message is None:
152+
return None
151153
if not message.value() and not message.key():
152154
return message
153155
if not message.error():

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy