Skip to content

Commit 1ad79cf

Browse files
dvora-hvladvildanov
authored andcommittedSep 27, 2024
Fix lock error (#3176)
1 parent 76895d5 commit 1ad79cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎redis/exceptions.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ class LockError(RedisError, ValueError):
8282
# NOTE: For backwards compatibility, this class derives from ValueError.
8383
# This was originally chosen to behave like threading.Lock.
8484

85-
def __init__(self, message, lock_name=None):
85+
def __init__(self, message=None, lock_name=None):
8686
self.message = message
8787
self.lock_name = lock_name
8888

0 commit comments

Comments
 (0)