Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IndexError when trying to get or set lock #107

Open
anton-zelenskiy opened this issue Sep 24, 2022 · 0 comments
Open

IndexError when trying to get or set lock #107

anton-zelenskiy opened this issue Sep 24, 2022 · 0 comments

Comments

@anton-zelenskiy
Copy link

Hello, sometimes I have an error when I trying to get or set lock. Looks like the error need to be handled

Traceback:

IndexError: list index out of range
  File "aioredlock/algorithm.py", line 142, in lock
    await self._set_lock(resource, lock_identifier, lease_time)
  File "aioredlock/algorithm.py", line 77, in _set_lock
    elapsed_time = await self.redis.set_lock(resource, lock_identifier, lease_time)
  File "aioredlock/redis.py", line 355, in set_lock
    raise_error(successes, 'Can not acquire the lock "%s"' % resource)
  File "aioredlock/redis.py", line 28, in raise_error
    raise LockError(default_message) from errors[0]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant