Skip to content

Commit

Permalink
Use ClickException rather exit in plex login command
Browse files Browse the repository at this point in the history
  • Loading branch information
glensc committed Jan 14, 2024
1 parent 2aee993 commit e9d3350
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions plextraktsync/commands/plex_login.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,8 +71,7 @@ def myplex_login(username, password):
except Unauthorized as e:
print(error(f"Log in to Plex failed: '{e}', Try again."), highlight=False)
except BadRequest as e:
print(error(f"Log in to Plex failed: '{e}'"), highlight=False)
exit(1)
raise ClickException(f"Log in to Plex failed: {e}")


def choose_managed_user(account: MyPlexAccount):
Expand Down

0 comments on commit e9d3350

Please sign in to comment.