From c4b03d9f4f8fa47e12d8b5355e0b10ed2270ad12 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Sun, 4 Dec 2016 21:29:08 +0000 Subject: [PATCH] Fix file_matches to never return None Should fix https://github.com/kivy/buildozer/issues/431#issuecomment-264732499 , as the deleted code just makes the function return None when presumably an empty list is fine and it should just continue. Making a PR rather than a straight change in case I'm missing something about what's intended here. --- buildozer/__init__.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/buildozer/__init__.py b/buildozer/__init__.py index 866bd89..9038229 100644 --- a/buildozer/__init__.py +++ b/buildozer/__init__.py @@ -582,8 +582,6 @@ class Buildozer(object): result = [] for pattern in patterns: matches = glob(expanduser(pattern.strip())) - if not matches: - return result.extend(matches) return result