- Better error message when too many paths (request too large)

This commit is contained in:
nwithan8 2023-12-26 22:45:49 -07:00
parent 07dd14fd64
commit a370d0f5ae

View File

@ -1,6 +1,7 @@
from typing import List, Union, Tuple
from plexapi.server import PlexServer
from plexapi.exceptions import BadRequest
import modules.logs as logging
@ -40,6 +41,10 @@ class PlexConnector:
try:
self._plex_server.settings.save() # type: ignore
except BadRequest as e:
if "Too Large" in str(e):
logging.error("Failed to update pre-roll: Too many paths")
return
except Exception as e:
logging.error(f"Failed to save pre-roll: {e}")
return