diff --git a/compressor/base.py b/compressor/base.py index c006793..25f35f2 100644 --- a/compressor/base.py +++ b/compressor/base.py @@ -64,11 +64,11 @@ class Compressor(object): def get_filename(self, basename): # first try to find it with staticfiles (in debug mode) filename = None - if self.finders: - filename = self.finders.find(basename) - # secondly try finding the file in the root - elif self.storage.exists(basename): + if self.storage.exists(basename): filename = self.storage.path(basename) + # secondly try finding the file in the root + elif self.finders: + filename = self.finders.find(basename) if filename: return filename # or just raise an exception as the last resort