You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by jh...@apache.org on 2021/08/13 18:20:25 UTC

[airflow] 05/38: fix(smart_sensor): Unbound variable errors (#14774)

This is an automated email from the ASF dual-hosted git repository.

jhtimmins pushed a commit to branch v2-1-test
in repository https://gitbox.apache.org/repos/asf/airflow.git

commit 6ebbf8272f5cfc5a952731a6c70c528504015193
Author: Shivansh Saini <sh...@gmail.com>
AuthorDate: Thu Jun 24 03:52:27 2021 +0530

    fix(smart_sensor): Unbound variable errors (#14774)
    
    Signed-off-by: Shivansh Saini <sh...@gmail.com>
    
    Closes #14770
    
    (cherry picked from commit 4aec25a80e3803238cf658c416c8e6d3975a30f6)
---
 airflow/sensors/smart_sensor.py | 1 +
 1 file changed, 1 insertion(+)

diff --git a/airflow/sensors/smart_sensor.py b/airflow/sensors/smart_sensor.py
index c8c5ba7..8755eb5 100644
--- a/airflow/sensors/smart_sensor.py
+++ b/airflow/sensors/smart_sensor.py
@@ -435,6 +435,7 @@ class SmartSensorOperator(BaseOperator, SkipMixin):
         TI = TaskInstance
 
         count_marked = 0
+        query_result = []
         try:
             query_result = (
                 session.query(TI, SI)