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