dstandish commented on code in PR #26682:
URL: https://github.com/apache/airflow/pull/26682#discussion_r980369904
##########
airflow/models/dagbag.py:
##########
@@ -539,6 +539,10 @@ def collect_dags(
# Ensure dag_folder is a str -- it may have been a pathlib.Path
dag_folder = correct_maybe_zipped(str(dag_folder))
+
+ if not os.path.isfile(dag_folder):
Review Comment:
seems it could alternatively be a folder or None or empty string?
--
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: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]