Skip to content

Commit 35f82b1

Browse files
committed
Merge pull request #1 from TwigWorld/quick_patch
fall back to previous finder function to retrieve infile for compiler
2 parents 5dd3b2e + 39fb0c6 commit 35f82b1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

pipeline/compilers/__init__.py

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@
77
except ImportError:
88
from pipes import quote
99

10+
from django.contrib.staticfiles import finders
1011
from django.contrib.staticfiles.storage import staticfiles_storage
1112
from django.core.files.base import ContentFile
1213
from django.utils.encoding import smart_str, smart_bytes
@@ -33,7 +34,10 @@ def _compile(input_path):
3334
compiler = compiler(verbose=self.verbose, storage=self.storage)
3435
if compiler.match_file(input_path):
3536
output_path = self.output_path(input_path, compiler.output_extension)
36-
infile = self.storage.path(input_path)
37+
try:
38+
infile = self.storage.path(input_path)
39+
except NotImplementedError:
40+
infile = finders.find(input_path)
3741
outfile = self.output_path(infile, compiler.output_extension)
3842
outdated = compiler.is_outdated(input_path, output_path)
3943
try:

0 commit comments

Comments
 (0)