Skip to content

Commit

Permalink
Merge pull request apache#1545 from jgao54/zip-bug-fix
Browse files Browse the repository at this point in the history
  • Loading branch information
criccomini committed May 26, 2016
2 parents 387f08c + 50f911c commit 01b3291
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion airflow/models.py
Original file line number Diff line number Diff line change
Expand Up @@ -406,7 +406,7 @@ def collect_dags(
continue
mod_name, file_ext = os.path.splitext(
os.path.split(filepath)[-1])
if file_ext != '.py':
if file_ext != '.py' and not zipfile.is_zipfile(filepath):
continue
if not any(
[re.findall(p, filepath) for p in patterns]):
Expand Down

0 comments on commit 01b3291

Please sign in to comment.