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 b406824 commit d4a6a05Copy full SHA for d4a6a05
kafka/consumer/fetcher.py
@@ -934,9 +934,9 @@ def _parse_fetched_data(self, completed_fetch):
934
elif error_type is Errors.TopicAuthorizationFailedError:
935
log.warning("Not authorized to read from topic %s.", tp.topic)
936
raise Errors.TopicAuthorizationFailedError(set([tp.topic]))
937
- elif error_type.is_retriable:
+ elif getattr(error_type, 'retriable', False):
938
log.debug("Retriable error fetching partition %s: %s", tp, error_type())
939
- if error_type.invalid_metadata:
+ if getattr(error_type, 'invalid_metadata', False):
940
self._client.cluster.request_update()
941
else:
942
raise error_type('Unexpected error while fetching data')
0 commit comments