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

Better error message on unsupported compression type #28

Open
beregon87 opened this issue Dec 16, 2020 · 0 comments
Open

Better error message on unsupported compression type #28

beregon87 opened this issue Dec 16, 2020 · 0 comments

Comments

@beregon87
Copy link

Currently, in aiokafka.record.default_records._DefaultRecordBatchPy._maybe_uncompress it doesn't handle any compression type that is not supported. So if, for example, a record is consumed that is compressed with zstd, you will only get following error message:

UnboundLocalError: local variable 'uncompressed' referenced before assignment

It would be good with a more informative error message here, informing the user than an unsupported compression type was used.

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

No branches or pull requests

1 participant