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 c5ee4b3 commit 406aa30Copy full SHA for 406aa30
test/testutil.py
@@ -125,7 +125,7 @@ def setUp(self):
125
self.client.load_metadata_for_topics(self.topic, ignore_leadernotavailable=False)
126
if self.client.has_metadata_for_topic(topic):
127
break
128
- except LeaderNotAvailableError, InvalidTopicError:
+ except (LeaderNotAvailableError, InvalidTopicError):
129
time.sleep(1)
130
else:
131
raise KafkaTimeoutError('Timeout loading topic metadata!')
0 commit comments