From 213cd929982404e4c1b13b6d3c1a66081c50dcf6 Mon Sep 17 00:00:00 2001 From: Daniel Roth Date: Fri, 3 Jul 2026 11:18:42 +0000 Subject: [PATCH] =?UTF-8?q?Renamer=20warns=20once=20per=20property=20only?= =?UTF-8?q?=20after=20all=20roots=20miss=20=F0=9F=9F=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-Authored-By: Claude Fable 5 --- orchestration/sharepoint_renamer_orchestrator.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/orchestration/sharepoint_renamer_orchestrator.py b/orchestration/sharepoint_renamer_orchestrator.py index b5206f0ee..84a4b62d7 100644 --- a/orchestration/sharepoint_renamer_orchestrator.py +++ b/orchestration/sharepoint_renamer_orchestrator.py @@ -97,6 +97,11 @@ class SharepointRenamerOrchestrator: ) if self._process_folder(folder_path, uprn, address, postcode): break + else: + logger.warning( + f"Missing folder for UPRN {uprn} in any root: " + f"{address}, {postcode}" + ) def _process_folder( self, folder_path: str, uprn: str, address: str, postcode: str @@ -104,7 +109,6 @@ class SharepointRenamerOrchestrator: try: contents = self._sp_client.get_folders_in_path(folder_path) except ValueError: - logger.warning(f"Missing folder for UPRN {uprn}: {folder_path}") return False for item in contents.get("value", []):