caches: fixed unicode mismatch with types

This commit is contained in:
RhodeCode Admin 2022-10-26 11:17:53 +02:00
parent 5cfea23393
commit 85f6a432fb

View file

@ -300,7 +300,7 @@ class BaseRedisBackend(redis_backend.RedisBackend):
def get_mutex(self, key):
if self.distributed_lock:
lock_key = redis_backend.u(u'_lock_{0}'.format(safe_unicode(key)))
lock_key = u'_lock_{0}'.format(safe_unicode(key))
return get_mutex_lock(self.client, lock_key, self._lock_timeout,
auto_renewal=self._lock_auto_renewal)
else: