Skip to content
This repository was archived by the owner on Oct 29, 2023. It is now read-only.

Commit 7c1eb5a

Browse files
committed
expanduser and resolve
1 parent 963c76a commit 7c1eb5a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

n26/cli.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,9 @@ def logout():
6868
""" Logout """
6969
cfg = Config()
7070
login_data_file = cfg.LOGIN_DATA_STORE_PATH.value
71-
login_data_file.unlink(missing_ok=True)
71+
if login_data_file is not None:
72+
login_data_file = login_data_file.expanduser().resolve()
73+
login_data_file.unlink(missing_ok=True)
7274

7375

7476
@cli.command()

0 commit comments

Comments
 (0)