specific message for timeout

pull/1577/head
Chaz Larson 1 year ago
parent de16b1e4a2
commit 4c1c7f228d

@ -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…
Cancel
Save