You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2022/05/16 20:19:36 UTC

[GitHub] [airflow] potiuk commented on a diff in pull request #23716: Add typing for airflow/configuration.py

potiuk commented on code in PR #23716:
URL: https://github.com/apache/airflow/pull/23716#discussion_r874121701


##########
airflow/configuration.py:
##########
@@ -620,15 +666,17 @@ def getjson(self, section, key, fallback=_UNSET, **kwargs) -> Union[dict, list,
         except (NoSectionError, NoOptionError):
             return default
 
-        if len(data) == 0:
+        if data is None or len(data) == 0:

Review Comment:
   Why not :)



-- 
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.

To unsubscribe, e-mail: commits-unsubscribe@airflow.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org