fix wrong key type

This commit is contained in:
Benedikt Bartscher 2024-11-21 02:56:46 +01:00
parent b28f4ac1c6
commit b26dcfa798
No known key found for this signature in database

View File

@ -3365,7 +3365,7 @@ class StateManagerRedis(StateManager):
# Check that we're holding the lock. # Check that we're holding the lock.
if ( if (
lock_id is not None lock_id is not None
and await self.redis.get(prefix_redis_token_str(self._lock_key(token))) and await self.redis.get(prefix_redis_token_bytes(self._lock_key(token)))
!= lock_id != lock_id
): ):
raise LockExpiredError( raise LockExpiredError(