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:
parent
de16b1e4a2
commit
4c1c7f228d
1 changed files with 2 additions and 0 deletions
|
@ -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):
|
||||
|
|
Loading…
Add table
Reference in a new issue