From 2f20a92f0fc2f46c5229b8e32c85bb5f6845a1eb Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Mon, 4 Nov 2024 15:23:18 +0100 Subject: [PATCH] remove return --- cashu/core/db.py | 1 - tests/conftest.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/cashu/core/db.py b/cashu/core/db.py index 2a575dde..eb62be80 100644 --- a/cashu/core/db.py +++ b/cashu/core/db.py @@ -220,7 +220,6 @@ def _is_lock_exception(e): logger.trace( f"< Connection yielded. Unlock: {lock_table} - trial {trial} ({random_int})" ) - return except Exception as e: if _is_lock_exception(e): retry_delay = await _handle_lock_retry( diff --git a/tests/conftest.py b/tests/conftest.py index 3a0ce2b9..e9ca102e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -92,7 +92,7 @@ async def start_mint_init(ledger: Ledger) -> Ledger: # drop all tables await conn.execute("DROP SCHEMA public CASCADE;") await conn.execute("CREATE SCHEMA public;") - # await db.engine.dispose() + await db.engine.dispose() wallets_module = importlib.import_module("cashu.lightning") lightning_backend_sat = getattr(wallets_module, settings.mint_backend_bolt11_sat)(