Skip to content

Commit 9ad1546

Browse files
authored
Fix lock error (#3176)
1 parent 9df2225 commit 9ad1546

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)