LPgenerator / django-db-mailer

Django module to easily send emails/sms/tts/push using django templates stored on database and managed through the Django Admin
https://github.com/LPgenerator/django-db-mailer
GNU General Public License v2.0
255 stars 81 forks source link

Fix twilio provider b64encode error in python3 #123

Open Esperk opened 4 years ago

Esperk commented 4 years ago

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 commented 4 years ago

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

Esperk commented 4 years ago

Looks like this is also an issue on https://github.com/LPgenerator/django-db-mailer/pull/122