You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/07/19 02:14:20 UTC

[jira] [Commented] (AIRFLOW-334) Fix using undefined variable

    [ https://issues.apache.org/jira/browse/AIRFLOW-334?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15383484#comment-15383484 ] 

ASF subversion and git services commented on AIRFLOW-334:
---------------------------------------------------------

Commit cca55d7964612f48bb64f03c2e07d03529618b83 in incubator-airflow's branch refs/heads/master from [~skudriashev]
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=cca55d7 ]

[AIRFLOW-334] Fix using undefined variable


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