From 606b6b5d7a7ac843204c2749b634c7213703f2d5 Mon Sep 17 00:00:00 2001 From: Jerry Date: Tue, 9 Feb 2021 10:23:34 +0800 Subject: [PATCH] fix a dumb error --- src/pacroller/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pacroller/main.py b/src/pacroller/main.py index 3739554..08cce9b 100644 --- a/src/pacroller/main.py +++ b/src/pacroller/main.py @@ -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()