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

Fokko Driesprong resolved AIRFLOW-2097.
---------------------------------------
       Resolution: Fixed
    Fix Version/s: 2.0.0

Issue resolved by pull request #3076
[https://github.com/apache/incubator-airflow/pull/3076]

> 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
>             Fix For: 2.0.0
>
>
> 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)

Reply via email to