From d6160e4a7ae29bc5ec6de1af9741b4eb11d489fb Mon Sep 17 00:00:00 2001 From: callebtc <93376500+callebtc@users.noreply.github.com> Date: Tue, 5 Nov 2024 11:48:11 +0100 Subject: [PATCH] test this --- cashu/core/db.py | 1 + pyproject.toml | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/cashu/core/db.py b/cashu/core/db.py index eb62be80..2a575dde 100644 --- a/cashu/core/db.py +++ b/cashu/core/db.py @@ -220,6 +220,7 @@ 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/pyproject.toml b/pyproject.toml index 5ccbba18..f0daa86a 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -55,7 +55,6 @@ requires = ["poetry-core>=1.0.0"] build-backend = "poetry.core.masonry.api" [tool.pytest.ini_options] -asyncio_mode = "strict" asyncio_default_fixture_loop_scope = "function" [tool.poetry.scripts]