chg: make sure the lock file is empty

pull/920/head
Raphaël Vinot 2024-06-11 11:02:07 +02:00
parent 378ce639bc
commit 937c7adbb6
1 changed files with 1 additions and 1 deletions

View File

@ -322,7 +322,7 @@ def is_locked(locked_dir_path: Path, /) -> bool:
max_wait_content = 5
while max_wait_content > 0:
with lock_file.open('r') as f:
if content := f.read():
if content := f.read().strip():
break
# The file is empty, we're between the creation and setting the content
logger.info(f'Lock file empty ({lock_file}), waiting...')