You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/02/08 16:07:28 UTC

[GitHub] [airflow] davidpr91 commented on a change in pull request #21391: Optionally raise an error if source file does not exist in GCSToGCSOperator

davidpr91 commented on a change in pull request #21391:
URL: https://github.com/apache/airflow/pull/21391#discussion_r801802051



##########
File path: airflow/providers/google/cloud/transfers/gcs_to_gcs.py
##########
@@ -313,6 +318,14 @@ def _copy_source_without_wildcard(self, hook, prefix):
                 self._copy_single_object(
                     hook=hook, source_object=prefix, destination_object=self.destination_object
                 )
+            else:
+                msg = (
+                    f'{prefix} does not exist in bucket {self.source_bucket}'
+                )
+                self.log.warning(msg)

Review comment:
       you're right! I've just modified it




-- 
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: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org