Skip to content

Commit

Permalink
style(ruff): ruff format as well
Browse files Browse the repository at this point in the history
  • Loading branch information
soehlert committed Jan 20, 2025
1 parent 5d4d415 commit a4b1196
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
3 changes: 2 additions & 1 deletion backend/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ class PlexConnectionError(Exception):
Attributes:
original_error (Optional[Exception]): The original exception that caused this error
"""

default_message = "Failed to connect to Plex server"

def __init__(self, original_error: Exception | None = None) -> None:
Expand All @@ -17,4 +18,4 @@ def __init__(self, original_error: Exception | None = None) -> None:
Defaults to None.
"""
self.original_error = original_error
super().__init__(self.default_message)
super().__init__(self.default_message)
5 changes: 1 addition & 4 deletions backend/services/plex.py
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,7 @@ def get_plex_connection():
session.verify = False

# Connect to Plex via MyPlexAccount
account = MyPlexAccount(
username=settings.plex_username,
password=settings.plex_password
)
account = MyPlexAccount(username=settings.plex_username, password=settings.plex_password)

# Get the specific server by its name
plex_server = account.resource(settings.plex_server_name).connect()
Expand Down

0 comments on commit a4b1196

Please # to comment.