Changes between Initial Version and Version 1 of Ticket #21080, comment 32


Ignore:
Timestamp:
Mar 9, 2025, 5:06:45 PM (6 days ago)
Author:
ElJeffe

Legend:

Unmodified
Added
Removed
Modified
  • TabularUnified Ticket #21080, comment 32

    initial v1  
    1 What point does the ValueError serve?  This is not a linter - if the file is not there, just continue on.
     1What point does the ValueError serve?  This is not a linter - if the file is not there, just continue on.  I ended up doing this.
     2
     3
     4{{{
     5class CustomManifestStaticFilesStorage(ManifestStaticFilesStorage):
     6    manifest_strict = False
     7
     8    def hashed_name(self, name, content=None):
     9        try:
     10            return super().hashed_name(name, content)
     11        except ValueError:
     12            # Skip hashing for missing files, use original name
     13            return name
     14}}}
Back to Top