From f1e8074115e6a470795487554aaabbbe543e2ed9 Mon Sep 17 00:00:00 2001 From: Dimitri Papadopoulos <3234522+DimitriPapadopoulos@users.noreply.github.com> Date: Sat, 29 Jun 2024 13:53:24 +0200 Subject: [PATCH] Apply ruff/tryceratops rule TRY401 TRY401 Redundant exception object included in `logging.exception` call --- src/setuptools_scm/hg.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/setuptools_scm/hg.py b/src/setuptools_scm/hg.py index dbffb0ae..43fb295b 100644 --- a/src/setuptools_scm/hg.py +++ b/src/setuptools_scm/hg.py @@ -101,8 +101,8 @@ def get_meta(self, config: Configuration) -> ScmVersion | None: else: return meta(tag, config=config, node_date=node_date) - except ValueError as e: - log.exception("error %s", e) + except ValueError: + log.exception("error") pass # unpacking failed, old hg return None