fix: lint errors

This commit is contained in:
Boris Arzentar 2025-04-30 15:43:10 +02:00
parent 44cc74994f
commit c5d5c5578a
2 changed files with 3 additions and 3 deletions

View file

@ -53,7 +53,7 @@ def deadlock_retry(max_retries=5):
await wait()
else:
raise # Re-raise the original error
except DatabaseUnavailable as error:
except DatabaseUnavailable:
if attempt >= max_retries:
raise # Re-raise the original error

View file

@ -26,7 +26,7 @@ async def test_deadlock_retry():
wrapped_function = deadlock_retry(max_retries=2)(mock_function)
result = await wrapped_function(self=None)
assert result == True, "Function should have succeded on second time"
assert result, "Function should have succeded on second time"
async def test_deadlock_retry_exhaustive():
@ -39,7 +39,7 @@ async def test_deadlock_retry_exhaustive():
wrapped_function = deadlock_retry(max_retries=2)(mock_function)
result = await wrapped_function(self=None)
assert result == True, "Function should have succeded on second time"
assert result, "Function should have succeded on second time"
if __name__ == "__main__":