Commit 9a91c63e by Timothée Peignier

Merge pull request #176 from QPmedia/master

skip non-existing files in bundles
parents 84229c89 d7d48945
from __future__ import unicode_literals
from django.contrib.staticfiles.finders import find
from django.core.files.base import ContentFile
from django.utils.encoding import smart_str
......@@ -22,7 +23,7 @@ class Package(object):
paths = []
for pattern in self.config.get('source_filenames', []):
for path in glob(pattern):
if not path in paths:
if not path in paths and find(path):
paths.append(str(path))
self._sources = paths
return self._sources
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment