Static storage fix test

This commit is contained in:
DawoudSheraz
2018-12-11 12:43:53 +05:00
committed by Awais Jibran
parent 353fe07c27
commit 7b75e18f04

View File

@@ -25,6 +25,16 @@ class PipelineForgivingStorage(PipelineCachedStorage):
out = name
return out
def stored_name(self, name):
try:
out = super(PipelineForgivingStorage, self).stored_name(name)
except ValueError:
# This means that a file could not be found, and normally this would
# cause a fatal error, which seems rather excessive given that
# some packages have missing files in their css all the time.
out = name
return out
class ProductionStorage(
PipelineForgivingStorage,