Skip to content

Commit

Permalink
Pin python27 compatible version
Browse files Browse the repository at this point in the history
  • Loading branch information
pschrimpf committed Nov 18, 2022
1 parent 48260cd commit 99566f4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,5 +24,5 @@
version = "{version!s}"
""",
},
install_requires=("apache-airflow>=1.8", "newrelic-telemetry-sdk>=0.4.0,<0.5"),
install_requires=("email-validator==1.2.1", "apache-airflow>=1.8", "newrelic-telemetry-sdk>=0.4.0,<0.5"),
)
4 changes: 2 additions & 2 deletions src/newrelic_airflow_plugin/newrelic_plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -44,12 +44,12 @@ def get_config():
file = open(config_location, mode="r")
airflow_config = file.read()
file.close()
airflow_config = AirflowConfigParser(default_config=airflow_config)
airflow_config = AirflowConfigParser(default_config=airflow_config.encode("UTF-8").decode())
section = airflow_config.getsection("newrelic")
if section is not None:
nr_config = section
else:
_logger.info("Could not find airflow configt at ", config_location)
_logger.info("Could not find airflow config at ", config_location)

# Set default configs
if PROP_INSERT_KEY not in nr_config and ENV_INSERT_KEY in os.environ:
Expand Down

0 comments on commit 99566f4

Please sign in to comment.