[autofix.ci] apply automated fixes

This commit is contained in:
autofix-ci[bot]
2026-02-13 06:46:17 +00:00
committed by L1nSn0w
parent c002e8cf07
commit cd5c72825f
3 changed files with 3 additions and 3 deletions

View File

@ -797,7 +797,9 @@ def upgrade_db():
lock.release()
except LockNotOwnedError:
status = "successful" if migration_succeeded else "failed"
logger.warning("DB migration lock not owned on release after %s migration (likely expired); ignoring.", status)
logger.warning(
"DB migration lock not owned on release after %s migration (likely expired); ignoring.", status
)
except RedisError:
status = "successful" if migration_succeeded else "failed"
logger.warning(

View File

@ -32,4 +32,3 @@ class DeploymentConfig(BaseSettings):
description="Deployment environment (e.g., 'PRODUCTION', 'DEVELOPMENT'), default to PRODUCTION",
default="PRODUCTION",
)

View File

@ -141,4 +141,3 @@ def test_upgrade_db_ignores_reacquire_errors(monkeypatch, capsys):
assert exit_code == 0
assert lock.reacquire.call_count >= 1