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:
parent
d6c4dfa332
commit
f460b39dae
1 changed files with 2 additions and 0 deletions
|
@ -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()
|
||||
|
|
Loading…
Reference in a new issue