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 2020/05/05 07:50:33 UTC

[GitHub] [airflow] turbaszek commented on a change in pull request #7197: [AIRFLOW-6586] Improvements to gcs sensor

turbaszek commented on a change in pull request #7197:
URL: https://github.com/apache/airflow/pull/7197#discussion_r419923886



##########
File path: airflow/providers/google/cloud/sensors/gcs.py
##########
@@ -243,45 +246,57 @@ def __init__(self,
 
         self.bucket = bucket
         self.prefix = prefix
+        if inactivity_period < 0:
+            raise ValueError(
+                f"inactivity_period must be non-negative")

Review comment:
       ```suggestion
               raise ValueError("inactivity_period must be non-negative")
   ```




----------------------------------------------------------------
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.

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