From c5b67ea4308c1d880ee5571f910e3fbce1f02b6f Mon Sep 17 00:00:00 2001 From: Jason Kidd Date: Fri, 17 Jan 2025 13:40:09 -0800 Subject: [PATCH] fix: Remove unnecessary decode statement Since we create our Redis instance with , we don't need to worry about decoding this value here. Plus this doesn't work in python3 anyway --- backend/open_webui/socket/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backend/open_webui/socket/utils.py b/backend/open_webui/socket/utils.py index d3de87b05..46fafbb9e 100644 --- a/backend/open_webui/socket/utils.py +++ b/backend/open_webui/socket/utils.py @@ -26,7 +26,7 @@ class RedisLock: def release_lock(self): lock_value = self.redis.get(self.lock_name) - if lock_value and lock_value.decode("utf-8") == self.lock_id: + if lock_value and lock_value == self.lock_id: self.redis.delete(self.lock_name)