From 5fb1a4f0fc0b23b13d992378efbe76d655f16b84 Mon Sep 17 00:00:00 2001 From: Simon Fayer Date: Fri, 29 May 2026 12:53:47 +0100 Subject: [PATCH] fix: Lower log level for KeyError in bulk config get --- .../WebApp/handler/ConfigurationManagerHandler.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py b/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py index e47a144f..b07f4a67 100644 --- a/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py +++ b/src/WebAppDIRAC/WebApp/handler/ConfigurationManagerHandler.py @@ -103,8 +103,11 @@ def __getSubnodesForPath(self, sectionPath, retData): sectionCfg = self.__configData["cfgData"].getCFG() for section in [section for section in sectionPath.split("/") if not section.strip() == ""]: sectionCfg = sectionCfg[section] - except Exception as v: - self.log.exception("Section does not exist", f"{sectionPath} -> {v!r}") + except KeyError as err: + self.log.info("Client requested non-existent section", f"{sectionPath} -> {err!r}") + return False + except Exception as err: + self.log.exception("Error loading config section", f"{sectionPath} -> {err!r}") return False for entryName in sectionCfg.listAll():