You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Scott Kruger (JIRA)" <ji...@apache.org> on 2017/11/29 19:47:00 UTC
[jira] [Created] (AIRFLOW-1867) sendgrid fails on python3 with
attachments
Scott Kruger created AIRFLOW-1867:
-------------------------------------
Summary: sendgrid fails on python3 with attachments
Key: AIRFLOW-1867
URL: https://issues.apache.org/jira/browse/AIRFLOW-1867
Project: Apache Airflow
Issue Type: Bug
Reporter: Scott Kruger
Priority: Minor
Sendgrid emails raise an exception on python 3 when attaching files due to {{base64.b64encode}} returning {{bytes}} rather than {{unicode/string}} (see: https://github.com/apache/incubator-airflow/blob/master/airflow/contrib/utils/sendgrid.py#L69). The fix is simple: decode the base64 data to `utf-8`.
--
This message was sent by Atlassian JIRA
(v6.4.14#64029)