Skip to content

Fix twilio provider b64encode error in python3#123

Open
Esperk wants to merge 1 commit intoLPgenerator:masterfrom
Esperk:fix-twilio-provider-base64-encoding-bug
Open

Fix twilio provider b64encode error in python3#123
Esperk wants to merge 1 commit intoLPgenerator:masterfrom
Esperk:fix-twilio-provider-base64-encoding-bug

Conversation

@Esperk
Copy link
Copy Markdown

@Esperk Esperk commented Jan 13, 2020

Fixes the following error when running with python3:
TypeError: a bytes-like object is required, not 'str'

This change changes nothing in python2 but casts to a bytestring in python3 which enables casting to a base64 string in both versions.

@Esperk
Copy link
Copy Markdown
Author

Esperk commented Jan 13, 2020

I'm not sure if this is a known issue but the flake8 tests seem to fail on untouched code.

@Esperk
Copy link
Copy Markdown
Author

Esperk commented Jan 13, 2020

Looks like this is also an issue on #122

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.

1 participant