We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5aaf9db commit 3484fd2Copy full SHA for 3484fd2
redis/asyncio/lock.py
@@ -175,14 +175,10 @@ async def __aenter__(self):
175
async def __aexit__(self, exc_type, exc_value, traceback):
176
try:
177
await self.release()
178
- except LockNotOwnedError:
179
- if self.raise_on_release_error:
180
- raise
181
- logger.warning("Lock was no longer owned when exiting context manager.")
182
except LockError:
183
if self.raise_on_release_error:
184
raise
185
- logger.warning("Lock was unlocked when exiting context manager.")
+ logger.warning("Lock was unlocked or no longer owned when exiting context manager.")
186
187
async def acquire(
188
self,
0 commit comments