Skip to content

Commit a4c69b3

Browse files
dvora-hvladvildanov
authored andcommitted
Fix lock error (#3176)
1 parent b0ab708 commit a4c69b3

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)