Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise AssertionError when decompression unsupported. Fix #1033 #1159

Merged
merged 1 commit into from
Aug 5, 2017

Conversation

bts-webber
Copy link
Contributor

Raise AssertionError when decompression unsupported.

@jeffwidman jeffwidman changed the title Fixed Issue 1033. Raise AssertionError when decompression unsupported. Fix #1033 Jul 27, 2017
@jeffwidman
Copy link
Collaborator

Fix #1033

@dpkp
Copy link
Owner

dpkp commented Jul 30, 2017

+1. Might also be good to raise something other than AssertionError when compression libraries are not available. I believe the source of the exception is in kafka/protocol/message.py decompress()

@jeffwidman
Copy link
Collaborator

I agree with @dpkp that we should be raising/catching something more specific than an AssertionError... assertions are used liberally through this codebase, so there's too much risk of someday catching something unexpected, plus we are trying to migrate to Exceptions rather than Assertions in many cases (background in #891)

@dpkp
Copy link
Owner

dpkp commented Aug 5, 2017

Filed #1168 to follow-up

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants