From 4f342f3b4564ccd4d93d73f9e24db521fe00bfeb Mon Sep 17 00:00:00 2001 From: cclauss Date: Wed, 2 May 2018 15:43:09 +0200 Subject: [PATCH] [AIRFLOW-2407] import logging for line 76 of aws_hook.py Resolve flake8 error: flake8 testing of https://github.com/apache/incubator-airflow on Python 3.6.3 $ __flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics__ ``` ./airflow/contrib/hooks/aws_hook.py:75:13: F821 undefined name 'logging' logging.warning("Option Error in parsing s3 config file") ^ ``` --- airflow/contrib/hooks/aws_hook.py | 1 + 1 file changed, 1 insertion(+) diff --git a/airflow/contrib/hooks/aws_hook.py b/airflow/contrib/hooks/aws_hook.py index 29bf740dd72f5..c8ded4d2951c7 100644 --- a/airflow/contrib/hooks/aws_hook.py +++ b/airflow/contrib/hooks/aws_hook.py @@ -20,6 +20,7 @@ import boto3 import configparser +import logging from airflow.exceptions import AirflowException from airflow.hooks.base_hook import BaseHook