fix a dumb error

This commit is contained in:
JerryXiao 2021-02-09 10:23:34 +08:00
parent 09404979b0
commit 606b6b5d7a
Signed by: Jerry
GPG key ID: 9D9CE43650FF2BAA

View file

@ -57,7 +57,7 @@ def sync() -> None:
raise
except subprocess.TimeoutExpired as e:
logger.warning('database download timeout {e.timeout=} {e.output=}')
if PACMAN_DB_LCK.exists():
if Path(PACMAN_DB_LCK).exists():
logger.warning(f'automatically removing {PACMAN_DB_LCK}')
Path(PACMAN_DB_LCK).unlink()
raise SyncRetry()