airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Siddharth Anand (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AIRFLOW-334) Fix using undefined variable
Date Tue, 19 Jul 2016 02:13:20 GMT

     [ https://issues.apache.org/jira/browse/AIRFLOW-334?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Siddharth Anand updated AIRFLOW-334:
------------------------------------
    External issue URL: https://github.com/apache/incubator-airflow/pull/1664

> Fix using undefined variable
> ----------------------------
>
>                 Key: AIRFLOW-334
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-334
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: core
>    Affects Versions: Airflow 1.7.1.2
>            Reporter: Stanislav Kudriashev
>            Assignee: Stanislav Kudriashev
>            Priority: Minor
>
> See the example from **airflow/www/views.py**:
> {code}
> def set_task_instance_state(self, ids, target_state, session=None):
>     ...
>     for count, id in enumerate(ids):
>         ...
>     count += 1  # <-- if ids is empty list we will get exception here
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message