mirror of https://github.com/devine-dl/devine.git
Check if cookies exists
This commit is contained in:
parent
989c24788b
commit
f412b0e37f
|
@ -212,6 +212,9 @@ def add(ctx: click.Context, profile: str, service: str, cookie: Optional[str] =
|
||||||
|
|
||||||
if cookie:
|
if cookie:
|
||||||
cookie = Path(cookie)
|
cookie = Path(cookie)
|
||||||
|
if not cookie.is_file():
|
||||||
|
log.error(f"No such file or directory: {cookie}.")
|
||||||
|
sys.exit(1)
|
||||||
else:
|
else:
|
||||||
print("Opening File Dialogue, select a Cookie file to import.")
|
print("Opening File Dialogue, select a Cookie file to import.")
|
||||||
cookie = tkinter.filedialog.askopenfilename(
|
cookie = tkinter.filedialog.askopenfilename(
|
||||||
|
|
Loading…
Reference in New Issue