| 2 | |
| 3 | Edit: |
| 4 | |
| 5 | The docs seem to indicate the behavior should be as I've described: This behavior can be disabled by subclassing ManifestStaticFilesStorage and setting the manifest_strict attribute to False – nonexistent paths will remain unchanged. (https://docs.djangoproject.com/en/3.0/ref/contrib/staticfiles/#manifeststaticfilesstorage) |
| 6 | |
| 7 | Replacing |
| 8 | |
| 9 | {{{ |
| 10 | try: |
| 11 | hashed = self.hashed_name(name) |
| 12 | except ValueError: |
| 13 | hashed = name |
| 14 | cache_name = self.clean_name(hashed) |
| 15 | }}} |
| 16 | |
| 17 | with |
| 18 | |
| 19 | {{{ |
| 20 | cache_name = self.clean_name(name) |
| 21 | }}} |
| 22 | |
| 23 | would behave as currently documented and seems like the better way to handle it. In addition to adding log output at the ERROR level. |