We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 20bb8bb commit 00f2a1fCopy full SHA for 00f2a1f
confluent_kafka/avro/__init__.py
@@ -53,8 +53,7 @@ def __str__(self):
53
54
55
from confluent_kafka.avro.cached_schema_registry_client import CachedSchemaRegistryClient
56
-from confluent_kafka.avro.serializer import (SerializerError,
57
- KeySerializerError,
+from confluent_kafka.avro.serializer import (KeySerializerError,
58
ValueSerializerError)
59
from confluent_kafka.avro.serializer.message_serializer import MessageSerializer
60
@@ -148,6 +147,8 @@ def poll(self, timeout=None):
148
147
if timeout is None:
149
timeout = -1
150
message = super(AvroConsumer, self).poll(timeout)
+ if message is None:
151
+ return None
152
if not message.value() and not message.key():
153
return message
154
if not message.error():
0 commit comments