Skip to content

Commit

Permalink
Fix lock error (#3176)
Browse files Browse the repository at this point in the history
  • Loading branch information
dvora-h committed Mar 10, 2024
1 parent 535f90e commit f2b20cb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/exceptions.py
Expand Up @@ -82,7 +82,7 @@ class LockError(RedisError, ValueError):
# NOTE: For backwards compatibility, this class derives from ValueError.
# This was originally chosen to behave like threading.Lock.

def __init__(self, message, lock_name=None):
def __init__(self, message=None, lock_name=None):
self.message = message
self.lock_name = lock_name

Expand Down

0 comments on commit f2b20cb

Please sign in to comment.