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 7, 2024
1 parent 9df2225 commit 9ad1546
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion redis/exceptions.py
Original file line number Diff line number Diff line change
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 9ad1546

Please sign in to comment.