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

sasl_compat.py: no 'message' attribute #8

Open
alex-ber opened this issue Jan 20, 2021 · 0 comments
Open

sasl_compat.py: no 'message' attribute #8

alex-ber opened this issue Jan 20, 2021 · 0 comments

Comments

@alex-ber
Copy link

alex-ber commented Jan 20, 2021

This line is Python 2 only as message is not an attribute anymore in Python 3:
https://github.com/devinstevenson/pure-transport/blob/master/puretransport/sasl_compat.py#L13

As your remarks, the code was taken from the Impyla project, so the fix is to change line 13

        #self.error = e.message
        self.error = str(e)

See cloudera/impyla#418
cloudera/impyla#419

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