From 16909a6a9cd6fc5f9368d9778d5cb5214d27801f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Fri, 3 Jan 2025 03:36:12 +0100 Subject: [PATCH] Continued: - fixed deprecation warning for pylint 3.0 ending support for short class names - wrong %d for a string fixed --- fba/models/instances.py | 2 +- pylint.rc | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/fba/models/instances.py b/fba/models/instances.py index 9c0c1ba..5672494 100644 --- a/fba/models/instances.py +++ b/fba/models/instances.py @@ -445,7 +445,7 @@ def set_last_response_time(domain: str, response_time: float) -> None: logger.debug("EXIT!") def set_last_requested_path(domain: str, path: float) -> None: - logger.debug("domain='%s',path=%d - CALLED!", domain, path) + logger.debug("domain='%s',path=%s - CALLED!", domain, path) domain_helper.raise_on(domain) if not isinstance(path, str): diff --git a/pylint.rc b/pylint.rc index e9b0d09..bc616fc 100644 --- a/pylint.rc +++ b/pylint.rc @@ -509,5 +509,5 @@ preferred-modules= # Exceptions that will emit a warning when being caught. Defaults to # "BaseException, Exception". -overgeneral-exceptions=BaseException, - Exception +overgeneral-exceptions=builtins.BaseException, + builtins.Exception -- 2.39.5