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():