diff --git a/.pre-commit-config.yaml b/.pre-commit-config.yaml index b7651282..354bc5bd 100644 --- a/.pre-commit-config.yaml +++ b/.pre-commit-config.yaml @@ -1,13 +1,13 @@ repos: - repo: https://github.com/astral-sh/ruff-pre-commit - rev: v0.11.4 + rev: v0.15.0 hooks: - id: ruff args: [--fix, --unsafe-fixes] - id: ruff-format - repo: https://github.com/astral-sh/uv-pre-commit # uv version. - rev: 0.6.12 + rev: 0.10.0 hooks: # Locks the uv.lock file based on our pyproject.toml files - id: uv-lock diff --git a/notifiers/logging.py b/notifiers/logging.py index f08e3e37..7a2fc981 100644 --- a/notifiers/logging.py +++ b/notifiers/logging.py @@ -66,7 +66,7 @@ def handleError(self, record): :param record: :class:`logging.LogRecord` """ if logging.raiseExceptions: - t, v, tb = sys.exc_info() + t, v, _tb = sys.exc_info() if issubclass(t, NotifierException) and self.fallback: msg = f"Could not log msg to provider '{self.provider.name}'!\n{v}" self.fallback_defaults["message"] = msg