diff --git a/backends/fs.py b/backends/fs.py index 8bae31b..7db53a5 100644 --- a/backends/fs.py +++ b/backends/fs.py @@ -66,6 +66,7 @@ def _get_destination(self, namespace): def _write_to_file(self, filename, box): dotted_filename = str(filename).replace('/', '.') lockfile = f'{self.lock_path}/{dotted_filename}.lock' + # pylint: disable=abstract-class-instantiated lock = FileLock(lockfile) with lock: with open(filename, 'wb') as save_file: @@ -74,6 +75,7 @@ def _write_to_file(self, filename, box): def _load_from_file(self, filename): dotted_filename = str(filename).replace('/', '.') lockfile = f'{self.lock_path}/{dotted_filename}.lock' + # pylint: disable=abstract-class-instantiated lock = FileLock(lockfile) with lock: try: