From 7a8ab97ff52cbd8d13b5c4540c4972160e4fcd3c Mon Sep 17 00:00:00 2001 From: "pre-commit-ci[bot]" <66853113+pre-commit-ci[bot]@users.noreply.github.com> Date: Fri, 20 Dec 2024 10:36:09 +0000 Subject: [PATCH] [pre-commit.ci] auto fixes from pre-commit.com hooks for more information, see https://pre-commit.ci --- diracx-core/src/diracx/core/config/__init__.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/diracx-core/src/diracx/core/config/__init__.py b/diracx-core/src/diracx/core/config/__init__.py index 46450045..0283767c 100644 --- a/diracx-core/src/diracx/core/config/__init__.py +++ b/diracx-core/src/diracx/core/config/__init__.py @@ -159,7 +159,9 @@ def latest_revision(self) -> tuple[str, datetime]: ).strip() modified = datetime.fromtimestamp(int(commit_info), tz=timezone.utc) except sh.ErrorReturnCode as e: - raise BadConfigurationVersionError(f"Error parsing latest revision: {e}") from e + raise BadConfigurationVersionError( + f"Error parsing latest revision: {e}" + ) from e logger.debug("Latest revision for %s is %s with mtime %s", self, rev, modified) return rev, modified @@ -176,7 +178,9 @@ def read_raw(self, hexsha: str, modified: datetime) -> Config: ) raw_obj = yaml.safe_load(blob) except sh.ErrorReturnCode as e: - raise BadConfigurationVersionError(f"Error reading configuration: {e}") from e + raise BadConfigurationVersionError( + f"Error reading configuration: {e}" + ) from e config_class: Config = select_from_extension(group="diracx", name="config")[ 0