fix: handle invalid filepath

This commit is contained in:
aclist 2026-01-01 01:24:36 +09:00
parent 2c19d999ff
commit 29e13db5a2

View File

@ -50,4 +50,6 @@ def copy_ipdb(ips_path: Path) -> None:
legacy = home / LEGACY_IPS_PATH
if ips_path == legacy:
return
if legacy.is_file() is False:
return
shutil.copy(legacy, ips_path)