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 2018/02/28 09:13:00 UTC

[jira] [Commented] (AIRFLOW-2097) UnboundLocalError: local variable 'tz' referenced before assignment

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

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

Commit 02292c5d9068d0fc199d861bdaafa674d5a19348 in incubator-airflow's branch refs/heads/master from Tao feng
[ https://git-wip-us.apache.org/repos/asf?p=incubator-airflow.git;h=02292c5 ]

[AIRFLOW-2097] tz referenced before assignment

UnboundLocalError: local variable 'tz' referenced before assignment

Closes #3076 from feng-tao/airflow-2097


> UnboundLocalError: local variable 'tz' referenced before assignment
> -------------------------------------------------------------------
>
>                 Key: AIRFLOW-2097
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-2097
>             Project: Apache Airflow
>          Issue Type: Bug
>          Components: utils
>            Reporter: Bryce Drennnan
>            Assignee: Tao Feng
>            Priority: Minor
>
> The date_range function references the variable tz before its assigned.  I noticed this while running doctests.
> See this part of the code:
> [https://github.com/apache/incubator-airflow/blob/15b8a36b9011166b06f176f684b71703a4aebddd/airflow/utils/dates.py#L73-L84]
> I believe this bug was introduced here:
> https://github.com/apache/incubator-airflow/commit/518a41acf319af27d49bdc0c84bda64b6b8af0b3#commitcomment-27433613



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)