Elad created AIRFLOW-3528:
-----------------------------
Summary: handle socket exception with SFTPOperator
Key: AIRFLOW-3528
URL: https://issues.apache.org/jira/browse/AIRFLOW-3528
Project: Apache Airflow
Issue Type: Bug
Affects Versions: 1.10.1
Reporter: Elad
Assignee: Elad
Currently SFTPOperator executes:
{code:java}
sftp_client = ssh_client.open_sftp()
{code}
without handling socket errors.
If error occurs with the connection the operator show the following message:
{code:java}
Subtask: airflow.exceptions.AirflowException: Error while transferring None,
error: 'NoneType' object has no attribute 'open_sftp'{code}
This error is misleading because it suggests that there is a problem with the
file transfer yet the problem in fact can be with the connection.
The issue reported by lot on Slack.
--
This message was sent by Atlassian JIRA
(v7.6.3#76005)