kaxil commented on a change in pull request #12091:
URL: https://github.com/apache/airflow/pull/12091#discussion_r517414647
##########
File path: airflow/configuration.py
##########
@@ -336,17 +338,14 @@ def get(self, section, key, **kwargs):
def _get_option_from_default_config(self, section, key, **kwargs):
# ...then the default config
if self.airflow_defaults.has_option(section, key) or 'fallback' in
kwargs:
- return expand_env_var(
- self.airflow_defaults.get(section, key, **kwargs))
+ return expand_env_var(self.airflow_defaults.get(section, key,
**kwargs))
else:
- log.warning(
- "section/key [%s/%s] not found in config", section, key
- )
+ log.warning("section/key [%s/%s] not found in config", section,
key)
raise AirflowConfigException(
- "section/key [{section}/{key}] not found "
- "in config".format(section=section, key=key))
+ "section/key [{section}/{key}] not found " "in
config".format(section=section, key=key)
Review comment:
```suggestion
"section/key [{section}/{key}] not found in
config".format(section=section, key=key)
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]