Skip to content
This repository has been archived by the owner on Mar 24, 2021. It is now read-only.

fix to #965 #995

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pykafka/simpleconsumer.py
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ def consume(self, block=True, unblock_event=None):
if not self._slot_available.is_set():
self._slot_available.set()

if self._deserializer is not None:
if self._deserializer is not None and ret is not None:
ret.value, ret.partition_key = self._deserializer(ret.value,
ret.partition_key)
return ret
Expand Down