Catch more specific ConnectionError
There's no handler for other exceptions, so pointless to catch them
MODIFY
plextraktsync/plex_server.py
plextraktsync/plex_server.py
import plexapi
from plexapi.server import PlexServer
-from requests.exceptions import SSLError
+from requests.exceptions import ConnectionError, SSLError
from plextraktsync.config import PLEX_PLATFORM
from plextraktsync.decorators.nocache import nocache
@@ -61,7 +61,7 @@ def connect(self, urls: List[str], token: str):
logger.error(e)
- except Exception as e:
+ except ConnectionError as e:
logger.error(e)
# 2.
if url[:5] == "https":

Catch more specific ConnectionError

There's no handler for other exceptions, so pointless to catch them