Skip to content

Commit 84f9e10

Browse files
authored
Merge pull request #389 from a-shkarupin/assertion_message
add assertion error description for easier debugging
2 parents b98accd + d5f5905 commit 84f9e10

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

frontera/contrib/messagebus/kafkabus.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -190,7 +190,8 @@ def __init__(self, messagebus):
190190

191191
def consumer(self, partition_id):
192192
c = Consumer(self._location, self._enable_ssl, self._cert_path, self._topic, self._general_group, partition_id)
193-
assert len(c._consumer.partitions_for_topic(self._topic)) == self._partitions
193+
assert len(c._consumer.partitions_for_topic(self._topic)) == self._partitions, \
194+
"Number of kafka topic partitions doesn't match value in config for spider feed"
194195
return c
195196

196197
def available_partitions(self):

0 commit comments

Comments
 (0)