Cleanup unused imports and empty pass
git ls-files '*.py' | xargs pipx run autoflake --in-place --remove-unused-variables
MODIFY
plextraktsync/media.py
plextraktsync/media.py
from requests import RequestException
from trakt.errors import TraktException
-from plextraktsync.decorators.deprecated import deprecated
from plextraktsync.logging import logger
from plextraktsync.plex_api import PlexApi, PlexGuid, PlexLibraryItem
from plextraktsync.trakt_api import TraktApi

MODIFY
plextraktsync/plex_api.py
plextraktsync/plex_api.py
import datetime
import re
-from typing import Any, List, Optional, Union
+from typing import List, Optional, Union
from plexapi import X_PLEX_CONTAINER_SIZE
from plexapi.exceptions import BadRequest, NotFound, Unauthorized

MODIFY
plextraktsync/plex_server.py
plextraktsync/plex_server.py
@@ -68,7 +68,6 @@ def _get_plex_server():
pass
except Exception as e:
m = "Plex connection error: {}, fallback url {} didn't respond either.".format(str(e), plex_fallbackurl)
- pass
if server is None:
try: # 3
server = PlexServer(token=plex_token, baseurl=plex_fallbackurl)

Cleanup unused imports and empty pass

git ls-files '*.py' | xargs pipx run autoflake --in-place --remove-unused-variables