mirror of
https://github.com/aclist/dztui.git
synced 2026-08-29 11:17:12 +02:00
fix: handle invalid filepath
This commit is contained in:
parent
2c19d999ff
commit
29e13db5a2
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user