[141] catch bad tokens

This commit is contained in:
meisnate12 2023-03-16 16:21:09 -04:00
parent 89eba94712
commit 433e9de0d5
3 changed files with 5 additions and 3 deletions

View file

@ -1 +1 @@
1.18.3-develop140
1.18.3-develop141

View file

@ -361,7 +361,7 @@ class Overlays:
except Exception as e:
logger.info(e)
logger.info(type(e))
logger.stacktrace(e)
logger.stacktrace()
logger.error("")
logger.error(f"Overlays Attempted on {item_title}: {', '.join(over_names)}")
logger.exorcise()

View file

@ -457,7 +457,9 @@ class Plex(Library):
if not self.Plex:
raise Failed(f"Plex Error: Plex Library '{params['name']}' not found. Options: {library_names}")
if self.Plex.type not in library_types:
raise Failed(f"Plex Error: Plex Library must be a Movies or TV Shows library")
raise Failed(f"Plex Error: Plex Library must be a Movies, TV Shows, or Music library")
if not self.Plex.allowSync:
raise Failed("Plex Error: Plex Token is read only. Please get a new token")
self.type = self.Plex.type.capitalize()
self.plex_pass = self.PlexServer.myPlexSubscription