kkulczak commented on code in PR #48063:
URL: https://github.com/apache/airflow/pull/48063#discussion_r2008977381
##########
providers/sftp/src/airflow/providers/sftp/sensors/sftp.py:
##########
@@ -97,16 +97,16 @@ def poke(self, context: Context) -> PokeReturnValue | bool:
else:
actual_files_to_check = [self.path]
- for actual_file_to_check in actual_files_to_check:
- try:
- mod_time = self.hook.get_mod_time(actual_file_to_check)
- self.log.info("Found File %s last modified: %s",
actual_file_to_check, mod_time)
- except OSError as e:
- if e.errno != SFTP_NO_SUCH_FILE:
- raise AirflowException from e
- continue
-
- if self.newer_than:
+ if self.newer_than:
Review Comment:
added
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]