airflow-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF subversion and git services (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AIRFLOW-334) Fix using undefined variable
Date Tue, 19 Jul 2016 02:14:20 GMT

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

Mime
View raw message