[core] Enable ruff G (flake8-logging-format) lint family (#16650)

This commit is contained in:
J. Nick Koston
2026-05-26 01:36:49 +00:00
committed by GitHub
parent e492f8f8b6
commit dd0028c1b5
5 changed files with 7 additions and 5 deletions
+2 -2
View File
@@ -239,12 +239,12 @@ def _lookup_module(domain: str, exception: bool) -> ComponentManifest | None:
"Unable to import component %s: %s", domain, str(e), exc_info=False
)
else:
_LOGGER.error("Unable to import component %s:", domain, exc_info=True)
_LOGGER.exception("Unable to import component %s:", domain)
return None
except Exception: # pylint: disable=broad-except
if exception:
raise
_LOGGER.error("Unable to load component %s:", domain, exc_info=True)
_LOGGER.exception("Unable to load component %s:", domain)
return None
manif = ComponentManifest(module)