Fix mistake when logging where the cookie file was moved

This commit is contained in:
rlaphoenix 2023-02-23 09:07:21 +00:00
parent 3b5a199f31
commit 9932fa3f7a
1 changed files with 2 additions and 2 deletions

View File

@ -1,6 +1,6 @@
import logging import logging
import sys
import shutil import shutil
import sys
import tkinter.filedialog import tkinter.filedialog
from collections import defaultdict from collections import defaultdict
from pathlib import Path from pathlib import Path
@ -248,7 +248,7 @@ def add(ctx: click.Context, profile: str, service: str, cookie: Optional[str] =
log.error(f"A Cookie file for the Profile {profile} on {service} already exists.") log.error(f"A Cookie file for the Profile {profile} on {service} already exists.")
sys.exit(1) sys.exit(1)
shutil.move(cookie, final_path) shutil.move(cookie, final_path)
log.info(f"Moved Cookie file to: {cookie}") log.info(f"Moved Cookie file to: {final_path}")
if credential: if credential:
config_path = Config._Directories.user_configs / Config._Filenames.root_config config_path = Config._Directories.user_configs / Config._Filenames.root_config