Log errors from Unauthorized exception
MODIFY
plextraktsync/plex_server.py
plextraktsync/plex_server.py
from typing import List
import plexapi
+from plexapi.exceptions import Unauthorized
from plexapi.server import PlexServer
from requests.exceptions import ConnectionError, SSLError
@@ -69,6 +70,8 @@ def connect(self, urls: List[str], token: str):
logger.warning(f"Trying with url: {url}")
urls.append(url)
continue
+ except Unauthorized as e:
+ logger.error(e)
logger.error("No more methods to connect. Giving up.")
exit(1)

Log errors from Unauthorized exception