chore: log in collectstatic when a file is None after process

This should not happen, but given we are not totally sure, let's
keep a log in case in happen during the deployement on a remote
server.
This commit is contained in:
Yohan Boniface 2024-02-09 18:42:52 +01:00
parent d6c4dfa332
commit f460b39dae

View file

@ -41,6 +41,8 @@ class UmapManifestStaticFilesStorage(ManifestStaticFilesStorage):
def post_process(self, paths, **options):
collected = super().post_process(paths, **options)
for original_path, processed_path, processed in collected:
if not processed_path:
print("Unused or missing file?", original_path)
if processed_path.endswith(".js"):
path = Path(settings.STATIC_ROOT) / processed_path
initial = path.read_text()