Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Catch BadRequest service_unavailable from plex separately #2164

Merged
merged 1 commit into from
Jan 28, 2025
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
Loading