feluelle commented on a change in pull request #4325: [AIRFLOW-3528] handle
socket exception with SFTPOperator
URL: https://github.com/apache/incubator-airflow/pull/4325#discussion_r242517084
##########
File path: airflow/contrib/operators/sftp_operator.py
##########
@@ -122,7 +122,11 @@ def execute(self, context):
self.ssh_hook.remote_host = self.remote_host
with self.ssh_hook.get_conn() as ssh_client:
- sftp_client = ssh_client.open_sftp()
+ try:
Review comment:
Does it need to be a Custom (Airflow) Exception?
Why can't the original exception just be raised?
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services