2
0
Fork 0
mirror of https://github.com/meisnate12/Plex-Meta-Manager synced 2025-03-03 06:47:30 +00:00

specific message for timeout

This commit is contained in:
Chaz Larson 2023-09-01 16:42:21 -05:00
parent de16b1e4a2
commit 4c1c7f228d

View file

@ -443,6 +443,8 @@ class Plex(Library):
os.environ["PLEXAPI_PLEXAPI_TIMEOUT"] = str(self.timeout)
except Unauthorized:
raise Failed("Plex Error: Plex token is invalid")
except requests.exceptions.ConnectTimeout:
raise Failed(f"Plex Error: Plex did not respond within the {self.timeout}-second timeout.")
except ValueError as e:
raise Failed(f"Plex Error: {e}")
except (requests.exceptions.ConnectionError, ParseError):