From 8a1d61ed71cec16a60acae79f3bd1fd1858bc7f3 Mon Sep 17 00:00:00 2001 From: BowTiedDevil Date: Tue, 18 Feb 2025 14:47:51 -0800 Subject: [PATCH] Catch more specific exceptions --- tests/arbitrage/test_uniswap_lp_cycle.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/arbitrage/test_uniswap_lp_cycle.py b/tests/arbitrage/test_uniswap_lp_cycle.py index a6ac3e14..2f1dd640 100644 --- a/tests/arbitrage/test_uniswap_lp_cycle.py +++ b/tests/arbitrage/test_uniswap_lp_cycle.py @@ -2279,10 +2279,10 @@ async def test_pickle_uniswap_lp_cycle_with_camelot_pool(fork_arbitrum: AnvilFor ] for task in asyncio.as_completed(_tasks): - with contextlib.suppress(ArbitrageError): + with contextlib.suppress(RateOfExchangeBelowMinimum): await task - with contextlib.suppress(ArbitrageError): + with contextlib.suppress(RateOfExchangeBelowMinimum): arb.calculate()