Use factory.has_plex_token
MODIFY
plextraktsync/commands/plex_login.py
plextraktsync/commands/plex_login.py
)
CONFIG = factory.config
-
style = get_style(
{
"questionmark": "hidden",
@@ -175,7 +174,7 @@ def choose_server(account: MyPlexAccount):
def has_plex_token():
- return CONFIG["PLEX_TOKEN"] is not None
+ return factory.has_plex_token
def plex_login_autoconfig():

Use factory.has_plex_token