Skip to content

Commit

Permalink
Merge pull request #9 from aitomatic/fix/cant_login_if_aitomatic_fold…
Browse files Browse the repository at this point in the history
…er_exists

fix: ignore error if .aitomatic folder already exists
  • Loading branch information
phamhoangtuan committed Apr 14, 2022
2 parents aa00552 + f25c8f4 commit ca4ab36
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/login/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def save_credential(obj, data):
obj['refresh_token'] = data['refresh_token']
obj['id'] = data['id']
if not CREDENTIAL_FILE.exists():
CREDENTIAL_FILE.parent.mkdir(parents=True)
CREDENTIAL_FILE.parent.mkdir(parents=True, exist_ok=True)
CREDENTIAL_FILE.write_text(json.dumps(data))


Expand Down
2 changes: 1 addition & 1 deletion version.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.4.1
0.4.2

0 comments on commit ca4ab36

Please sign in to comment.