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

[106] Merge remote-tracking branch 'chazlarson/Call-out-timeout-error' into nightly

This commit is contained in:
meisnate12 2023-09-11 15:04:30 -04:00
commit 1f28e26d0a

View file

@ -464,6 +464,8 @@ class Plex(Library):
except Unauthorized:
logger.info(f"Plex Error: Plex connection attempt returned '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:
logger.info(f"Plex Error: Plex connection attempt returned 'ValueError'")
logger.stacktrace()