fix: add required arg name for FileLock >=3.15.3

This commit is contained in:
Kloon ImKloon 2024-06-22 11:13:49 +02:00
parent 7fefdc4973
commit 8009a8418f
No known key found for this signature in database
GPG key ID: CCF1C86A995C5B6A

View file

@ -159,10 +159,10 @@ def get_dir_size(path):
class LockedJSONData(FileLock):
def __init__(self, file_path: str):
super().__init__(file_path + '.lock')
def __init__(self, lock_file: str):
super().__init__(lock_file + '.lock')
self._file_path = file_path
self._file_path = lock_file
self._data = None
self._initial_data = None