mirror of
https://github.com/aclist/dztui.git
synced 2026-11-01 07:32:44 +01:00
fix: handle invalid filepath
This commit is contained in:
1 parent
2c19d999ff
commit
29e13db5a2
1 file changed
+2
@@ -50,4 +50,6 @@ def copy_ipdb(ips_path: Path) -> None:
|
|||||||
legacy = home / LEGACY_IPS_PATH
|
legacy = home / LEGACY_IPS_PATH
|
||||||
if ips_path == legacy:
|
if ips_path == legacy:
|
||||||
return
|
return
|
||||||
|
if legacy.is_file() is False:
|
||||||
|
return
|
||||||
shutil.copy(legacy, ips_path)
|
shutil.copy(legacy, ips_path)
|
||||||
Reference in new issue
Block a user