Oleksandr Vilchynskyy created AIRFLOW-317:
---------------------------------------------
Summary: Avoid exception when reading logs from s3.
Key: AIRFLOW-317
URL: https://issues.apache.org/jira/browse/AIRFLOW-317
Project: Apache Airflow
Issue Type: Bug
Components: aws
Affects Versions: Airflow 1.7.1.2, Airflow 1.7.1.3
Reporter: Oleksandr Vilchynskyy
Assignee: Oleksandr Vilchynskyy
Priority: Minor
Fix For: Airflow 1.7.1.2, Airflow 1.7.1.3
There is unneeded decode() method after s3_key.get_contents_as_string().
get_contents_as_string() already returns a string. The problem appears if log
file contains non-ascii characters decode() method will raise Exception and
log will not be processed.
Without decode() method it will work as always, but log decoding will be
processed to browser.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)