Skip to content

Commit

Permalink
Merge pull request #2164 from glensc/no-trace-service_unavailable
Browse files Browse the repository at this point in the history
Catch BadRequest service_unavailable from plex separately
  • Loading branch information
glensc authored Jan 28, 2025
2 parents 93b2de6 + 0cac10f commit f6b6d57
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion plextraktsync/plex/PlexServerConnection.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

import plexapi
from click import ClickException
from plexapi.exceptions import Unauthorized
from plexapi.exceptions import BadRequest, Unauthorized
from plexapi.server import PlexServer
from requests.exceptions import ConnectionError, SSLError

Expand Down Expand Up @@ -62,6 +62,9 @@ def connect(self, urls: list[str], token: str):

self.logger.error(e)

except BadRequest as e:
self.logger.error(e)

except ConnectionError as e:
self.logger.error(e)
# 2.
Expand Down

0 comments on commit f6b6d57

Please sign in to comment.