Skip to content

Commit fa5edc7

Browse files
committed
Fix linting
Signed-off-by: jamshale <jamiehalebc@gmail.com>
1 parent 38ed755 commit fa5edc7

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

acapy_agent/admin/server.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,10 @@ async def upgrade_middleware(request: web.BaseRequest, handler: Coroutine):
217217
storage = session.inject(BaseStorage)
218218
upgrade_initiated = await storage.find_all_records(RECORD_TYPE_ACAPY_UPGRADING)
219219
# Check if the upgrade is actually in progress (not finished)
220-
if upgrade_initiated and upgrade_initiated[0].value == UPGRADING_RECORD_IN_PROGRESS:
220+
if (
221+
upgrade_initiated
222+
and upgrade_initiated[0].value == UPGRADING_RECORD_IN_PROGRESS
223+
):
221224
# If we get here, than another instance started an upgrade
222225
# We need to check for completion (or fail) in another process
223226
in_progress_upgrades.set_wallet(context.profile.name)

0 commit comments

Comments
 (0)