diff --git a/buildrunner/__init__.py b/buildrunner/__init__.py index b38cf27..238a6da 100644 --- a/buildrunner/__init__.py +++ b/buildrunner/__init__.py @@ -245,7 +245,7 @@ def _exclude_working_dir(tarinfo): if tarinfo.name == os.path.basename(self.build_results_dir): return None for _ex in excludes: - if fnmatch.fnmatch(tarinfo.name, _ex): + if _ex and _ex.strip() and fnmatch.fnmatch(tarinfo.name, _ex): return None return tarinfo