Remove redundant with_suffix call

This commit is contained in:
Brandon Rising 2024-03-11 15:02:17 -04:00 committed by Mary Hipp Rogers
parent c74c1927ec
commit 65d415d5aa

View File

@ -932,7 +932,7 @@ def main() -> None:
new_init_file = config.root_path / "invokeai.yaml"
backup_init_file = new_init_file.with_suffix(".bak")
if new_init_file.exists():
copy(new_init_file, new_init_file.with_suffix(".bak"))
copy(new_init_file, backup_init_file)
try:
# if we do a root migration/upgrade, then we are keeping previous