Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Jun 1, 2023
1 parent e420e97 commit 803b9df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion c2cwsgiutils/health_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,7 +316,7 @@ def __call__(self, request: pyramid.request.Request) -> str:
(actual_version,) = result
_ALEMBIC_VERSION.labels(
{"version": actual_version, "name": name, "configuration": alembic_ini_path}
).inc()
).set(1)
if actual_version != version_:
raise Exception( # pylint: disable=broad-exception-raised
f"Invalid alembic version (db: {actual_version}, code: {version_})"
Expand Down

0 comments on commit 803b9df

Please sign in to comment.