diff --git a/openedx/core/storage.py b/openedx/core/storage.py index b7683ce162eab8a9d265ce09fb861b8ebf3d0870..0565d29594a06c66a62482fe1fc29367041b0cda 100644 --- a/openedx/core/storage.py +++ b/openedx/core/storage.py @@ -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,