You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "Stanislav Kudriashev (JIRA)" <ji...@apache.org> on 2016/07/14 13:03:21 UTC
[jira] [Created] (AIRFLOW-334) Fix using undefined variable
Stanislav Kudriashev created AIRFLOW-334:
--------------------------------------------
Summary: 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)