From f460b39dae0e75ad6c9c3678c1c0b7f26364428a Mon Sep 17 00:00:00 2001 From: Yohan Boniface Date: Fri, 9 Feb 2024 18:42:52 +0100 Subject: [PATCH] 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. --- umap/storage.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/umap/storage.py b/umap/storage.py index 43d82635..90764373 100644 --- a/umap/storage.py +++ b/umap/storage.py @@ -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()