mirror of
https://github.com/aclist/dztui.git
synced 2026-10-28 05: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
|
||||
if ips_path == legacy:
|
||||
return
|
||||
if legacy.is_file() is False:
|
||||
return
|
||||
shutil.copy(legacy, ips_path)
|
||||
Reference in new issue
Block a user