Skip to content

Commit

Permalink
Pretty print error instead of raising
Browse files Browse the repository at this point in the history
  • Loading branch information
justin-russell committed Jan 5, 2024
1 parent e8cbf45 commit fea94fa
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions fractal/cli/controllers/auth.py
Original file line number Diff line number Diff line change
Expand Up @@ -149,8 +149,9 @@ def show(self, key: str):
"""
try:
data, _ = read_user_data(self.TOKEN_FILE)
except KeyError:
raise
except (KeyError, FileNotFoundError):
print(f"You are not logged in")
exit(1)

match key:
case "access_token":
Expand Down

0 comments on commit fea94fa

Please sign in to comment.