Skip to content

Commit

Permalink
adding a fix from jazzband#409
Browse files Browse the repository at this point in the history
  • Loading branch information
hwkns committed Jan 9, 2015
1 parent 68203ee commit 3b2599b
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pipeline/compilers/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
except ImportError:
from pipes import quote

from django.contrib.staticfiles import finders
from django.contrib.staticfiles.storage import staticfiles_storage
from django.core.files.base import ContentFile
from django.utils.encoding import smart_bytes
Expand All @@ -33,7 +34,10 @@ def _compile(input_path):
compiler = compiler(verbose=self.verbose, storage=self.storage)
if compiler.match_file(input_path):
output_path = self.output_path(input_path, compiler.output_extension)
infile = self.storage.path(input_path)
try:
infile = self.storage.path(input_path)
except NotImplementedError:
infile = finders.find(input_path)
outfile = self.output_path(infile, compiler.output_extension)
outdated = compiler.is_outdated(input_path, output_path)
try:
Expand Down

0 comments on commit 3b2599b

Please sign in to comment.