Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed Dec 17, 2024
1 parent d066249 commit f794af9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion diracx-core/src/diracx/core/config/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit f794af9

Please sign in to comment.