Skip to content

Commit

Permalink
remove return
Browse files Browse the repository at this point in the history
  • Loading branch information
callebtc committed Nov 4, 2024
1 parent 7355fc3 commit 2f20a92
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion cashu/core/db.py
Original file line number Diff line number Diff line change
Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)(
Expand Down

0 comments on commit 2f20a92

Please sign in to comment.