uranusjr commented on code in PR #22772:
URL: https://github.com/apache/airflow/pull/22772#discussion_r843555640
##########
airflow/providers/google/cloud/transfers/local_to_gcs.py:
##########
@@ -109,6 +109,8 @@ def execute(self, context: 'Context'):
)
filepaths = self.src if isinstance(self.src, list) else glob(self.src)
+ if len(filepaths) == 0:
+ raise ValueError(f"src {self.src} dos not exist.")
Review Comment:
```suggestion
if not filepaths:
raise FileNotFoundError(self.src)
```
--
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]